Class CustomFieldsVisitor
java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.elasticsearch.index.fieldvisitor.FieldsVisitor
org.elasticsearch.index.fieldvisitor.CustomFieldsVisitor
A field visitor that allows to load a selection of the stored fields by exact name or by pattern.
Supported pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy".
The Uid field is always loaded.
The class is optimized for source loading as it is a common use case.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.index.StoredFieldVisitor.Status
-
Field Summary
Fields inherited from class org.elasticsearch.index.fieldvisitor.FieldsVisitor
fieldsValues, id, source, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.StoredFieldVisitor.Status
needsField(org.apache.lucene.index.FieldInfo fieldInfo)
Methods inherited from class org.elasticsearch.index.fieldvisitor.FieldsVisitor
binaryField, binaryField, doubleField, fields, floatField, intField, longField, objectField, postProcess, reset, routing, source, stringField, uid
-
Constructor Details
-
CustomFieldsVisitor
-
-
Method Details
-
needsField
public org.apache.lucene.index.StoredFieldVisitor.Status needsField(org.apache.lucene.index.FieldInfo fieldInfo)- Overrides:
needsField
in classFieldsVisitor
-