Booleans:Boolean operators must be in capitals: e.g. 'robot AND engine'
, or 'car OR boat'
or 'cat NOT dog'
. && is an alias for AND and || is an alias for OR and ! is the alias for NOT. Parentheses can be used to group search terms. e.g. '(wheat AND grain) OR (sorgum AND barley)'
Fields : Search a specific field in the index (or fields) use 'field:term': e.g. 'title:(leishmani* AND diagnos*) || abstract:(leishmani* AND diagnos*) && classification_cpc: (A61K* OR C12N*)
Wildcards:e.g. *, ?, and regular expressions like /ar[gb]on/
Fuzziness and Proximity Search:To perform a fuzzy search use the tilde, "~", symbol at the end of a Single word Term. For example to search for a term similar in spelling to "roam" use the fuzzy search:roam~
. To perform a proximity search, add the tilde, "~", symbol to the end of a phrase suffixed with a number indicating the maximum edit distance of words in the phrase. For example, "quick fox"~4
searches for quick and fox within 4 words from each other.
Range Searches:Range Queries allow one to match documents whose field(s) values are between the lower and upper bound specified by the Range Query. Range Queries can be inclusive or exclusive of the upper and lower bounds. Sorting is done lexicographically.date_published:[2002-01-01 TO 2003-01-01]
This will find documents whose date_published fields have values between 2002-01-01 and 2003-01-01, inclusive. Note that Range Queries are not reserved for date fields. You could also use range queries with non-date fields:title:{Aida TO Carmen}
This will find all documents whose titles are between Aida and Carmen, but not including Aida and Carmen. Inclusive range queries are denoted by square brackets. Exclusive range queries are denoted by curly brackets.
Language:To search in a language other than English, use the "Query Tools" section at the bottom of the sidebar filters.
Query Syntax: For more details on the query syntax used, see Elasticsearch Query string query.
For more information see our Search Syntax, Boolean Logic tutorial and Boolean Operators Tutorial