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 TypeMethodDescriptionbooleanappendFields(org.apache.lucene.document.Document document, String metaId, @Nullable String name, boolean sortable, com.fasterxml.jackson.databind.JsonNode value) default voidputAnalyzers(Map<String, org.apache.lucene.analysis.Analyzer> analyzers, @Nullable String name) putAnalyzers registersAnalyzerfor a Lucene field.default voidputPointConfigs(Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> configs, @Nullable String name) putPointConfigs registersPointsConfigfor 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 thismetaId- only used for better tracing/log messagesname- field namesortable- if field is marked sortablevalue- field node- Returns:
- true if nested fields should be skipped. Only applies if value is an object
-
putAnalyzers
-
putPointConfigs
default void putPointConfigs(Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> configs, @Nullable String name) putPointConfigs registersPointsConfigfor numeric Lucene fields.- Parameters:
configs- global point config map, put point configs here if neededname- field name
-