Difference between revisions of "Search with Xapian Guide"

From EPrints Documentation
Jump to: navigation, search
m
(Added some content for specific fields text o)
Line 1: Line 1:
 
If your repository has Xapian search enabled for "Simple Search" (e.g. http://example.eprints.org/cgi/search/simple).  Then you can make use of the Xapian search syntax to make more complex queries, which needing to use advanced search.  This may be useful if you have another website you wish to search your EPrints repository with a specific filter on the results returned (e.g. only results for a particular faculty of department).  Below is a guide to some of the syntax that can be used with Xapian-based search.
 
If your repository has Xapian search enabled for "Simple Search" (e.g. http://example.eprints.org/cgi/search/simple).  Then you can make use of the Xapian search syntax to make more complex queries, which needing to use advanced search.  This may be useful if you have another website you wish to search your EPrints repository with a specific filter on the results returned (e.g. only results for a particular faculty of department).  Below is a guide to some of the syntax that can be used with Xapian-based search.
 +
 +
== Specific fields ==
 +
 +
=== Text only ===
 +
 +
Search for phrase '''science''' in the field '''title'''
 +
title:(science)
 +
 +
Search for the phrase '''smith''' in the field '''creators_name'''
 +
creators_name:(smith)
 +
 +
Exact multiple word phrases can also be search for, such at the phrase '''biological science''' in the field '''abstract'''
 +
abstract:(biological science)
 +
 +
The field names that can be searched under to match a text phrase are as follows:
 +
* abstract
 +
* contributors_name
 +
* creators_name
 +
* divisions
 +
* editors_name
 +
* subjects
 +
* title
 +
* type
 +
 +
  
 
== AND ==
 
== AND ==

Revision as of 09:18, 21 July 2017

If your repository has Xapian search enabled for "Simple Search" (e.g. http://example.eprints.org/cgi/search/simple). Then you can make use of the Xapian search syntax to make more complex queries, which needing to use advanced search. This may be useful if you have another website you wish to search your EPrints repository with a specific filter on the results returned (e.g. only results for a particular faculty of department). Below is a guide to some of the syntax that can be used with Xapian-based search.

Specific fields

Text only

Search for phrase science in the field title

title:(science)

Search for the phrase smith in the field creators_name

creators_name:(smith)

Exact multiple word phrases can also be search for, such at the phrase biological science in the field abstract

abstract:(biological science)

The field names that can be searched under to match a text phrase are as follows:

  • abstract
  • contributors_name
  • creators_name
  • divisions
  • editors_name
  • subjects
  • title
  • type


AND

OR

NOT

ANDs and ORs

More complex queries