Interface MetaSchema.FieldGenerator

All Known Implementing Classes:
MetaSchema.AbstractMetaTypeFieldGenerator, MetaSchema.AbstractNamedFieldGenerator, MetaSchema.AbstractSchemaFieldGenerator, MetaSchema.BooleanFieldGenerator, MetaSchema.DateFieldGenerator, MetaSchema.DateTimeFieldGenerator, MetaSchema.FileFieldGenerator, MetaSchema.GeoPointFieldGenerator, MetaSchema.IdFieldGenerator, MetaSchema.IllegalFieldGenerator, MetaSchema.IntegerFieldGenerator, MetaSchema.NumberFieldGenerator, MetaSchema.StringFieldGenerator, MetaSchema.UuidFieldGenerator, MetaSchemaTest.TestSchemaFieldGenerator
Enclosing class:
MetaSchema

public static interface MetaSchema.FieldGenerator
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    appendFields(org.apache.lucene.document.Document document, String metaId, @Nullable String name, boolean sortable, com.fasterxml.jackson.databind.JsonNode value)
     
    default void
    putAnalyzers(Map<String,org.apache.lucene.analysis.Analyzer> analyzers, @Nullable String name)
    putAnalyzers registers Analyzer for a Lucene field.
    default void
    putPointConfigs(Map<String,org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> configs, @Nullable String name)
    putPointConfigs registers PointsConfig for numeric Lucene fields.
  • Method Details

    • appendFields

      boolean appendFields(org.apache.lucene.document.Document document, String metaId, @Nullable String name, boolean sortable, com.fasterxml.jackson.databind.JsonNode value)
      Parameters:
      document - Document.add(org.apache.lucene.index.IndexableField) fields to this
      metaId - only used for better tracing/log messages
      name - field name
      sortable - if field is marked sortable
      value - field node
      Returns:
      true if nested fields should be skipped. Only applies if value is an object
    • putAnalyzers

      default void putAnalyzers(Map<String,org.apache.lucene.analysis.Analyzer> analyzers, @Nullable String name)
      putAnalyzers registers Analyzer for a Lucene field.
      Parameters:
      analyzers - global analyzer map, put analyzers here if needed
      name - field name
    • putPointConfigs

      default void putPointConfigs(Map<String,org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> configs, @Nullable String name)
      putPointConfigs registers PointsConfig for numeric Lucene fields.
      Parameters:
      configs - global point config map, put point configs here if needed
      name - field name