Class TermsQuery
- java.lang.Object
-
public class TermsQuery extends ChangableValueQuery
A query that checks a single field for exact matches against a series of specified values. Values are compared verbatim (without analysis or normalization) and must match the whole field value.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE
-
Constructor Summary
Constructors Constructor Description TermsQuery(java.lang.String field, java.util.List<java.lang.String> values, java.lang.String method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermsQuery
clone()
java.lang.String
getField()
java.lang.String
getMethod()
java.lang.String
getValue()
java.util.List<java.lang.String>
getValues()
void
setValue(java.lang.String value)
-
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
-
getField
public java.lang.String getField()
- Returns:
- the field this query is executed against.
-
getValues
public java.util.List<java.lang.String> getValues()
- Returns:
- the exact values to check for in
getField()
. Documents matching one or more of these values are included in the result set
-
getMethod
public java.lang.String getMethod()
- Returns:
- an internal hint to the backend regarding which of several implementations would be best for executing this query.
-
setValue
public void setValue(java.lang.String value)
- Specified by:
setValue
in classChangableValueQuery
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in classChangableValueQuery
-
clone
public TermsQuery clone()
- Specified by:
clone
in classChangableValueQuery
-
-