Class CustomFieldsVisitor

  • public class CustomFieldsVisitor
    extends FieldsVisitor
    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.
    • Constructor Detail

      • CustomFieldsVisitor

        public CustomFieldsVisitor​(java.util.Set<java.lang.String> fields,
                                   boolean loadSource)
    • Method Detail

      • needsField

        public org.apache.lucene.index.StoredFieldVisitor.Status needsField​(org.apache.lucene.index.FieldInfo fieldInfo)
        needsField in class FieldsVisitor