Text Search Query Examples |
< Previous | Next > |
This page contains some examples of various search syntax that may be used when forming queries. These examples are simplified and many combinations are valid. In addition to these examples, this overview may offer additional insights.
| Example | Explanation |
|---|---|
| apple | Find all documents containing the word apple in the current field. Note that as with most queries for words, stemming is automatically enabled. |
| conduct* | Find all documents containing words starting with conduct such as conduct, conductor, conducting, conducts, etc in the current field. Note that unlike other queries for words, stemming is disabled when a wildcard is used. |
| con*ct | Find all documents containing words starting with con and ending in ct such as connect, convict, Connecticut, contact, conduct, concoct, etc in the current field. Note that unlike other queries for words, stemming is disabled when a wildcard is used. |
| si? | Find all documents containing words that has only one character after si such as sic, sin, sip, sit, etc in the current field. The ? may both occur more than once and/or be embedded within the word. Note that unlike other queries for words, stemming is disabled when a wildcard is used. |
| "apple banana"~4 | Find all documents containing the word apple within four words of banana in the current field. The digit 4 may be replaced with any whole number. Stemming rules are applied to word lookups. Wildcards (as well as any other operators), however, are disallowed on words between the quotes. |
| apple AND banana | Find all documents containing both the word apple and the word banana in the current field. Stemming rules are applied. |
| (apple OR banana) AND (bowl OR tree) | Find all documents that contain either the word apple or the word banana which also contain either the word bowl or the word tree in the current field. Stemming rules are applied. Note the parenthesis force this ordering of the query; without parenthesis the query means (banana AND bowl) OR apple OR tree. |
| banana^2 OR apple | Find all documents containing the word banana or apple in the current field but rank the documents containing banana higher when preparing relevancy scores. All else being equivilent, banana is considered twice as "important" as apple. The 2 may be replaced with any whole number. Stemming rules are applied. |