Module
FuzzyQuery
FuzzyQuery ( field, value )
Constructs a query where each documents returned are “like” provided text
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | boost(boost) | Sets the boost value of the |
Object | field(f) | The field to run the query against. |
Object | maxExpansions(max) | The maximum number of query terms that will be included in any
generated query. Defaults to |
Object | minSimilarity(min) | The minimum similarity of the term variants. Defaults to |
Object | prefixLength(len) | Length of required common prefix on variant terms. Defaults to |
Object | rewrite(m) | Sets rewrite method. Valid values are:
Default is This is an advanced option, use with care. |
String | toJSON() | Retrieves the internal query object. This is typically used by
internal API functions so use with caution. |
Object | transpositions(trueFalse) | Set to false to use classic Levenshtein edit distance. |
Object | value(s) | The query text to fuzzify. |
Method Detail
boost
Object boost ( boost )
Sets the boost value of the
|
field
Object field ( f )
The field to run the query against.
|
maxExpansions
Object maxExpansions ( max )
The maximum number of query terms that will be included in any
generated query. Defaults to
|
minSimilarity
Object minSimilarity ( min )
The minimum similarity of the term variants. Defaults to
|
prefixLength
Object prefixLength ( len )
Length of required common prefix on variant terms. Defaults to
|
rewrite
Object rewrite ( m )
Sets rewrite method. Valid values are:
Default is This is an advanced option, use with care.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|
transpositions
Object transpositions ( trueFalse )
Set to false to use classic Levenshtein edit distance.
|
value
Object value ( s )
The query text to fuzzify.
|