Package com.yahoo.vespa.documentmodel
Class SearchField
- java.lang.Object
-
- com.yahoo.vespa.objects.FieldBase
-
- com.yahoo.document.Field
-
- com.yahoo.vespa.documentmodel.SearchField
-
- All Implemented Interfaces:
com.yahoo.document.fieldset.FieldSet
,java.io.Serializable
,java.lang.Comparable
public class SearchField extends com.yahoo.document.Field
- Since:
- 2010-02-19
- Author:
- baldersheim
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchField.Feature
This is a representation of features to generate for this field.
-
Constructor Summary
Constructors Constructor Description SearchField(com.yahoo.document.Field field, boolean indexed, boolean attribute)
SearchField(com.yahoo.document.Field field, boolean indexed, boolean attribute, java.util.List<SearchField.Feature> features)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchField
addFeature(SearchField.Feature feature)
boolean
isAttribute()
boolean
isIndexed()
True if field is Vespa indexedSearchField
setAttribute()
SearchField
setIndexed()
-
-
-
Constructor Detail
-
SearchField
public SearchField(com.yahoo.document.Field field, boolean indexed, boolean attribute)
-
SearchField
public SearchField(com.yahoo.document.Field field, boolean indexed, boolean attribute, java.util.List<SearchField.Feature> features)
-
-
Method Detail
-
setIndexed
public SearchField setIndexed()
-
setAttribute
public SearchField setAttribute()
-
isAttribute
public boolean isAttribute()
-
isIndexed
public boolean isIndexed()
True if field is Vespa indexed- Returns:
- true if indexed
-
addFeature
public SearchField addFeature(SearchField.Feature feature)
-
-