Jump to content

Searches: Difference between revisions

From EPrints Documentation
mNo edit summary
m link formatting corrected + some minor improvements
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:


== Simple search ==
== 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:
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
  <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.
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
  <nowiki>http://eprints.example.org/cgi/search/simple?q=Biological%20Science</nowiki>


By default the publication attributes which are search over are:
By default the publication attributes which are search over are:
Line 17: Line 17:
* '''creators_name''' - Names of the authors of the publication
* '''creators_name''' - Names of the authors of the publication
* '''documents''' - The full text of PDF and Word documents uploaded for 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.
* '''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 can also be modified, (see [[Search.pl]] for more details).
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 ==
== Advanced Search ==
'''To be written'''
'''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