How Can We Help?
Examples of Lucene SearchesExamples of Lucene Searches
What
Lucene (the search engine in Pure) searches can be used in search fields, within Pure, alongside or in place of filters. This type of search can help when trying to do more complex searches were a specific filter might be missing (i.e. using a NOT statement to exclude certain results from a search).
How
There are various ways to perform a lucene search; below are some of the most commonly used lucene searches used in Pure alongside what each means/ will show.
Sample Lucene Search | What will be shown |
---|---|
^source:QABO | This will pull up all publications that have the noted source (i.e. QABO). Example here will pull only content where QABO is listed as a source |
^source:scopus AND NOT source:QABO | This will show you content that has one source (i.e. Scopus), but not the other (i.e. QABO). Example here will show you Scopus publications that were not pulled in via the QABO (those with QABO as a source will be filtered out of the results). |
^NOT(creator:beckyAC) and NOT(source:QABO) | This will filter the results so that you do not see anything created by a specific user (i.e. beckyAC) or those that were pulled into Pure from a specific source (i.e. QABO). Example here will show content NOT created by beckyAC or pulled in from the QABO. |
^NOT(creator:root) and NOT(source:QABO) and (source:scopus) | This will take the above query and show you out of those results which pieces of content have the specified source (i.e. Scopus). Example here will show content NOT created by beckyAC or pulled in from the QABO, but have Scopus as a source. |
^creator:beckyAC@pure.edu | This will look up, by user (i.e.beckyAC@pure.edu), to see how much content a particular user has entered into Pure. Example here will show you the content user beckyAC@pure.edu has created and pull those as your results. |
Cancer -blood | This will do a text lookup on the first piece of text (i.e. cancer) but exclude the text in the -content field (i.e. blood). Example here will find content with cancer in the title but not blood. |
^abstract:brain,c^2.0 | This searches for a concept/ fingerprint with the noted text (i.e. brain) and with, at least, the specified weight (in the c^ field). Example here will show you content with the concept "brain" at a weight of at least 2.0. |
^awarddate:2017 | This, for example, can be used on student thesis where the award date period filter is missing (improvement on PURESUPPORT-77476) to see student thesis with an award date within a specific year. |
Note:
- Using advanced search can create a lucene search- please see KB-273 for more information on how to do this.
- Various fields, inside Pure, can be used in lucene searches, please see KB-220 as further assistance on how to find and use these.
More information
KB-273 Using Advanced search to create lucene search
KB-220 Searching specific using Index fields. Lucene Query Syntax
KB-728 Lucense searching with web service
Note: Some of this information is for internal use only and might not be accessible.
Updated at July 27, 2024