Advanced Search (including boolean options) is already supported in the DSpace 7 search page. Boolean keywords can be used, and you can also specify to search within specific fields by name. Some examples:
test power
will return results with both these words in them (this is equivalent to an "AND" boolean search). E.g. https://demo.dspace.org/search?query=test%20powertest AND power
will return results with both these words in them. E.g. https://demo.dspace.org/search?query=test%20AND%20powertest OR power
will return results with either of these words in them. E.g. https://demo.dspace.org/search?query=test%20OR%20powertest NOT power
will return results with "test" but not including "power". E.g. https://demo.dspace.org/search?query=test%20NOT%20power"test power"
(in quotes) will return results with the exact phrase "test power" in them. E.g. https://demo.dspace.org/search?query=%22test%20power%22dc.title:test
will only return results where the dc.title
includes "test". E.g. https://demo.dspace.org/search?query=dc.title:testdc.title:test AND dc.description.abstract:green
will only return results where the dc.title
field includes "test" and the dc.description.abstract
field returns "green". E.g. https://demo.dspace.org/search?query=dc.title:test%20and%20dc.description.abstract:greendc.subject:fin*
will only return results where one (or more) dc.subject fields start with "fin" (e.g. finance, financial, finish, etc), e.g. https://demo.dspace.org/search?query=dc.subject:fin*test pow*
will return results including "test" and any word starting with "pow". E.g. https://demo.dspace.org/search?query=test%20pow*dc.description.abstract:*
will return results that include the "dc.description.abstract" metadata field (with any value in it). E.g. https://demo.dspace.org/search?query=dc.description:*dc.date.issued:[1999 TO 2003]
will return results that have a "dc.date.issued" metadata field that has a date between 1999 and 2003 (inclusive). E.g. https://demo.dspace.org/search?query=dc.date.issued:%5B1999%20TO%202003%5D dc.date.issued:[2010 TO *]
will return results that have a "dc.date.issued" metadata field that has a date after (or including) 2010 . E.g. https://demo.dspace.org/search?query=dc.date.issued:%5B2010%20TO%20*%5D"test:power"
will search for that string exactly (including the colon character). (NOTE: Without the quotes, DSpace would attempt to perform "Searching within specific fields" (see above) as the colon is a special character.)DSpace supports all Solr search syntax options, as all searches in DSpace are sent directly to Solr. For more examples, see the Solr documentation for the "Specifying Terms for the Standard Query Parser".