Class SingleTermQuery
- java.lang.Object
-
- com.lucidworks.search.dsl.DslBase
-
- com.lucidworks.search.dsl.request.DslCloneable
-
- com.lucidworks.search.dsl.request.query.Query
-
- com.lucidworks.search.dsl.request.query.AbstractLeafQuery
-
- com.lucidworks.search.dsl.request.query.ChangableValueQuery
-
- com.lucidworks.search.dsl.request.query.AbstractTermQuery
-
- com.lucidworks.search.dsl.request.query.SingleTermQuery
-
public class SingleTermQuery extends AbstractTermQuery
A query matching on single term value
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE
-
Constructor Summary
Constructors Constructor Description SingleTermQuery(java.lang.String field, java.lang.String value, boolean fuzzy, java.lang.Integer fuzziness)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleTermQuery
clone()
java.lang.Integer
getFuzziness()
boolean
getFuzzy()
-
Methods inherited from class com.lucidworks.search.dsl.request.query.AbstractTermQuery
getField, getValue, setValue
-
Methods inherited from class com.lucidworks.search.dsl.request.query.ChangableValueQuery
isEmptyQuery
-
Methods inherited from class com.lucidworks.search.dsl.request.query.AbstractLeafQuery
getChildQueries, removeChildQuery, replaceChildQuery
-
Methods inherited from class com.lucidworks.search.dsl.request.DslCloneable
clone, deepClone
-
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFuzzy
public boolean getFuzzy()
- Returns:
- a flag to perform fuzzy searches based on the Damerau-Levenshtein Distance or Edit Distance algorithm. Fuzzy searches discover terms that are similar to a specified term without necessarily being an exact match.
-
getFuzziness
public java.lang.Integer getFuzziness()
- Returns:
- an optional distance parameter specifies the maximum number of edits allowed, between 0 and 2, defaulting to 2
-
clone
public SingleTermQuery clone()
- Specified by:
clone
in classChangableValueQuery
-
-