Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
API:EPrints/Plugin/Search
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==DESCRIPTION== Search plugins implement the features required to render search query form inputs, perform queries and return matching objects. The main function of a search plugin is to retrieve objects from a [[API:EPrints/DataSet|dataset]] based on a set of search criteria. The criteria are search fields and search filters. The terms used in search fields are usually provided by the user (e.g. from a Web form) while filters are defined by the search configuration. Search fields also define the "setness" of a search - if the user hasn't supplied any search terms the search is deemed to be empty. Filters tend to provide more options than those currently available from the Web UI, for instance testing whether a value is or is not set. In the default EPrints configuration there are <code>simple</code> and <code>advanced</code> searches for objects of class [[API:EPrints/DataObj/EPrint|EPrints::DataObj::EPrint]]. These (at least) define the form input boxes provided to the user and the fields that those user-supplied values are matched against. The search configuration can also define the choice of ordering of results, additional filters etc. Not all options will be supported by every engine - see the engine-specific plugins for details. There are currently two engines provided as part of the EPrints core: * Internal : [[API:EPrints/Plugin/Search/Internal|EPrints::Plugin::Search::Internal]] is a wrapper around [[API:EPrints/Search|EPrints::Search]]. : This supports querying any object type and in any search configuration (matches <code>*/*</code>). * Xapian : [[API:EPrints/Plugin/Search/Xapian|EPrints::Plugin::Search::Xapian]] is a wrapper around the {{API:PodLink|file=Search/Xapian|package_name=Search::Xapian|section=|text=Search::Xapian}} module (must be installed separately). Xapian supports relevance matches, phrase searching, stemming and other advanced text index approaches. : Currently only <code>simple</code> searches are supported. <!-- Pod2Wiki=head_methods -->
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)