Class TextValueFilter
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.filter.TextValueFilter
-
- All Implemented Interfaces:
FieldFilter,Filter
public class TextValueFilter extends Object implements Filter, FieldFilter
Represents a filter based on a text value
-
-
Constructor Summary
Constructors Constructor Description TextValueFilter(String name)TextValueFilter(String name, String... values)Create a text value filter with the given valuesTextValueFilter(String name, List<String> values)Create a text value filter with the given values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()The field from your schema upon which to apply your filterList<String>getValues()The value upon which to filter.inthashCode()TextValueFiltersetValues(List<String> values)The value upon which to filter.StringtoString()
-
-
-
Constructor Detail
-
TextValueFilter
public TextValueFilter(String name, String... values)
Create a text value filter with the given values- Parameters:
name- The field name this filter applies tovalues- The field values to filter on
-
TextValueFilter
public TextValueFilter(String name, List<String> values)
Create a text value filter with the given values- Parameters:
name- The field name this filter applies tovalues- The field values to filter on
-
TextValueFilter
public TextValueFilter(String name)
-
-
Method Detail
-
getName
public String getName()
The field from your schema upon which to apply your filter- Specified by:
getNamein interfaceFieldFilter- Returns:
- the field name
-
getValues
public List<String> getValues()
The value upon which to filter. The value must be an exact match, even casing: True will not match on true.- Returns:
- The values
-
setValues
public TextValueFilter setValues(List<String> values)
The value upon which to filter. The value must be an exact match, even casing: True will not match on true.- Parameters:
values- The values to match on- Returns:
this.
-
-