term
fun term(term: String, field: String = "_all", fuzziness: Int = 0, prefixLength: Int = 0): SearchQuery
Content copied to clipboard
Searches for a single term, without using an analyzer.
NOTE: This is a non-analytic query, meaning it won’t perform any text analysis on the query text.
Similar queries
If you want the terms to be analyzed for linguistic similarity, use match.
To search for multiple terms that must appear in a certain order, use phrase
Parameters
term
The exact term to search for, without using an analyzer.
field
The field to search. Defaults to _all
, whose content is specified during index creation.
fuzziness
Maximum allowable Levenshtein distance for a match.
prefix Length
To be considered a match, an input term and the matched text must have a common prefix of this length.