Difference between revisions of "Searches"

From EPrints Documentation
Jump to: navigation, search
(Added searches page)
 
(Added information for simple search)
Line 1: Line 1:
 
{{Manual}}
 
{{Manual}}
 
{{Work in Progress|This page is yet to be written.}}
 
{{Work in Progress|This page is yet to be written.}}
 +
EPrints has two main searches ''simple'' and ''advanced''. 
 +
 +
== Simple search ==
 +
Simple search by default provides a single text field for users to enter their search terms to search across a selection of different attributes of a publication.  Typically this simple search will be included on repository's home page and/or as part of the template so users can conduct a search from any page.  The simple search form can found at:
 +
 +
http://EPRINTS_HOSTNAME/cgi/search/simple
 +
 +
If you want to generate a pre-canned search the search terms are sent under the "q" parameter, e.g.
 +
 +
http://eprints.example.org/cgi/search/simple?q=Biological%20Science
 +
 +
By default the publication attributes which are search over are:
 +
* '''title'''
 +
* '''abstract'''
 +
* '''creators_name''' - Names of the authors of the publication
 +
* '''documents''' - The full text of PDF and Word documents uploaded for the publication
 +
* '''date''' - The primary date associated with the publication.  Typically the publication date.
 +
 +
This set of attributes can be modified by copying '''EPRINTS_PATH/lib/defaultcfg/cfg.d/eprint_search_simple.pl''' to '''EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/cfg.d/eprint_search_simple.pl''' and modifying the meta_fields section in the latter file.  Other search options such as search results ordering, paging and formatting.  (see [[Search.pl]] for more details).
 +
 +
== Advanced Search ==
 +
'''To be written'''

Revision as of 14:15, 8 September 2017

Manual Sections

Warning.png

Work in Progress
The page is a work in progress.

This page is yet to be written.

EPrints has two main searches simple and advanced.

Simple search

Simple search by default provides a single text field for users to enter their search terms to search across a selection of different attributes of a publication. Typically this simple search will be included on repository's home page and/or as part of the template so users can conduct a search from any page. The simple search form can found at:

http://EPRINTS_HOSTNAME/cgi/search/simple

If you want to generate a pre-canned search the search terms are sent under the "q" parameter, e.g.

http://eprints.example.org/cgi/search/simple?q=Biological%20Science

By default the publication attributes which are search over are:

  • title
  • abstract
  • creators_name - Names of the authors of the publication
  • documents - The full text of PDF and Word documents uploaded for the publication
  • date - The primary date associated with the publication. Typically the publication date.

This set of attributes can be modified by copying EPRINTS_PATH/lib/defaultcfg/cfg.d/eprint_search_simple.pl to EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/cfg.d/eprint_search_simple.pl and modifying the meta_fields section in the latter file. Other search options such as search results ordering, paging and formatting. (see Search.pl for more details).

Advanced Search

To be written