Class FieldsVisitor

java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.elasticsearch.index.fieldvisitor.FieldsVisitor
Direct Known Subclasses:
CustomFieldsVisitor

public class FieldsVisitor extends org.apache.lucene.index.StoredFieldVisitor
Base StoredFieldVisitor that retrieves all non-redundant metadata.
  • Field Details

  • Constructor Details

    • FieldsVisitor

      public FieldsVisitor(boolean loadSource)
    • FieldsVisitor

      public FieldsVisitor(boolean loadSource, String sourceFieldName)
  • Method Details

    • needsField

      public org.apache.lucene.index.StoredFieldVisitor.Status needsField(org.apache.lucene.index.FieldInfo fieldInfo)
      Specified by:
      needsField in class org.apache.lucene.index.StoredFieldVisitor
    • postProcess

      public final void postProcess(Function<String,MappedFieldType> fieldTypeLookup, @Nullable String type)
    • binaryField

      public void binaryField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] value)
      Overrides:
      binaryField in class org.apache.lucene.index.StoredFieldVisitor
    • binaryField

      public void binaryField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.util.BytesRef value)
    • stringField

      public void stringField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] bytes)
      Overrides:
      stringField in class org.apache.lucene.index.StoredFieldVisitor
    • intField

      public void intField(org.apache.lucene.index.FieldInfo fieldInfo, int value)
      Overrides:
      intField in class org.apache.lucene.index.StoredFieldVisitor
    • longField

      public void longField(org.apache.lucene.index.FieldInfo fieldInfo, long value)
      Overrides:
      longField in class org.apache.lucene.index.StoredFieldVisitor
    • floatField

      public void floatField(org.apache.lucene.index.FieldInfo fieldInfo, float value)
      Overrides:
      floatField in class org.apache.lucene.index.StoredFieldVisitor
    • doubleField

      public void doubleField(org.apache.lucene.index.FieldInfo fieldInfo, double value)
      Overrides:
      doubleField in class org.apache.lucene.index.StoredFieldVisitor
    • objectField

      public void objectField(org.apache.lucene.index.FieldInfo fieldInfo, Object object)
    • source

      public BytesReference source()
    • uid

      public Uid uid()
    • routing

      public String routing()
    • fields

      public Map<String,List<Object>> fields()
    • reset

      public void reset()