IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Term level queries
editTerm level queries
editWhile the full text queries will analyze the query string before executing, the term-level queries operate on the exact terms that are stored in the inverted index.
These queries are usually used for structured data like numbers, dates, and enums, rather than full text fields. Alternatively, they allow you to craft low-level queries, foregoing the analysis process.
The queries in this group are:
-
term
query - Find documents which contain the exact term specified in the field specified.
-
terms
query - Find documents which contain any of the exact terms specified in the field specified.
-
range
query - Find documents where the field specified contains values (dates, numbers, or strings) in the range specified.
-
exists
query - Find documents where the field specified contains any non-null value.
-
prefix
query - Find documents where the field specified contains terms which being with the exact prefix specified.
-
wildcard
query -
Find documents where the field specified contains terms which match the
pattern specified, where the pattern supports single character wildcards
(
?
) and multi-character wildcards (*
) -
regexp
query - Find documents where the field specified contains terms which match the regular expression specified.
-
fuzzy
query - Find documents where the field specified contains terms which are fuzzily similar to the specified term. Fuzziness is measured as a Levenshtein edit distance of 1 or 2.
-
type
query - Find documents of the specified type.
-
ids
query - Find documents with the specified type and IDs.
Range Query
editSee Range Query
field |
|
from |
|
to |
|
include lower value means that |
|
include upper value means that |
Type Query
editDeprecated in 7.0.0.
Types are being removed, prefer filtering on a field instead. For more information, see Removal of mapping types.
See Type Query