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 SummaryFields Modifier and Type Field Description static java.lang.StringTYPE
 - 
Constructor SummaryConstructors Constructor Description TermsQuery(java.lang.String field, java.util.List<java.lang.String> values, java.lang.String method)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TermsQueryclone()java.lang.StringgetField()java.lang.StringgetMethod()java.lang.StringgetValue()java.util.List<java.lang.String>getValues()voidsetValue(java.lang.String value)- 
Methods inherited from class com.lucidworks.search.dsl.request.query.ChangableValueQueryisEmptyQuery
 - 
Methods inherited from class com.lucidworks.search.dsl.request.query.AbstractLeafQuerygetChildQueries, removeChildQuery, replaceChildQuery
 - 
Methods inherited from class com.lucidworks.search.dsl.request.DslCloneableclone, deepClone
 
- 
 
- 
- 
- 
Field Detail- 
TYPEpublic static final java.lang.String TYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getFieldpublic java.lang.String getField() - Returns:
- the field this query is executed against.
 
 - 
getValuespublic 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
 
 - 
getMethodpublic java.lang.String getMethod() - Returns:
- an internal hint to the backend regarding which of several implementations would be best for executing this query.
 
 - 
setValuepublic void setValue(java.lang.String value) - Specified by:
- setValuein class- ChangableValueQuery
 
 - 
getValuepublic java.lang.String getValue() - Specified by:
- getValuein class- ChangableValueQuery
 
 - 
clonepublic TermsQuery clone() - Specified by:
- clonein class- ChangableValueQuery
 
 
- 
 
-