Enter one or more terms for the search separated by spaces. Results are sorted by relevance with the most relevant matches listed first. By default, each search term is optional in a matching document though a document must have at least one matching term. It is possible to specify that a term must be present in matching documents or that it must be absent in matching documents. To indicate that a term must be present in matching documents the term should be prefixed with a plus (+) and to indicate that a term must be absent the term should be prefixed with a minus (-). Without either prefix the term's presence in matching documents is optional. For example:
- foo bar - Matching documents may contain either "foo" or "bar" or both.
- +foo +bar - Matching documents must contain both "foo" and "bar".
- +foo bar -baz - Matching documents must contain "foo", might contain "bar", and must not contain "baz"
A wildcard, represented by an asterisk (*), can appear anywhere in a search term. For example:
- foo* - Match all documents containing words beginning with "foo".
- *oo - Match all documents containing words ending with "oo".
- f*o - Match all documents containing words starting with "f" ending with "o".
In multi-term searches, a single term may be more important than others. In such cases, you can add a term level boost. Any document that matches a boosted term will get a higher relevance score and appear higher up in the results. A boost is applied by appending a caret (^) and then a positive integer to a term. For example, foo^10 bar weights the term "foo" 10 times higher than the term "bar". Different terms can have different boosts.
Fuzzy matching is supported on search terms which can be helpful if the spelling of a term is unclear or to increase the number of search results that are returned. Fuzziness is applied by appending a tilde (~) and then a positive integer to a term. For example, foo~1 matches all documents that have a word within 1 edit distance of "foo". An edit distance of 1 allows words to match if either adding, removing, changing or transposing a character in the word would lead to a match. For example "boo" requires a single edit (replacing "f" with "b") and would match, but "boot" would not as it also requires an additional "t" at the end.