Jump to content

Searches: Difference between revisions

From EPrints Documentation
Added searches page
 
m link formatting corrected + some minor improvements
 
(3 intermediate revisions by one other user not shown)
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 or as part of the template so users can conduct a search from any page.  The simple search form can be found at:
<nowiki>http://EPRINTS_HOSTNAME/cgi/search/simple</nowiki>
If you want to generate a pre-canned search the search terms are sent under the "q" parameter, e.g.
<nowiki>http://eprints.example.org/cgi/search/simple?q=Biological%20Science</nowiki>
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_zero/cfg.d/eprint_search_simple.pl''' to '''EPRINTS_PATH/archives/ARCHIVEID/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 can also be modified, see [[Search.pl]] for more details.
== Advanced Search ==
'''To be written'''

Latest revision as of 17:07, 22 August 2022

Manual Sections

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[edit]

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 or as part of the template so users can conduct a search from any page. The simple search form can be 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_zero/cfg.d/eprint_search_simple.pl to EPRINTS_PATH/archives/ARCHIVEID/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 can also be modified, see Search.pl for more details.

Advanced Search[edit]

To be written