Package ch.rswk.meta.engine
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 TypeMethodDescriptionboolean
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 registersAnalyzer
for a Lucene field.default void
putPointConfigs
(Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> configs, @Nullable String name) putPointConfigs registersPointsConfig
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 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
default void putAnalyzers(Map<String, org.apache.lucene.analysis.Analyzer> analyzers, @Nullable String name) putAnalyzers registersAnalyzer
for a Lucene field.- Parameters:
analyzers
- global analyzer map, put analyzers here if neededname
- field name
-
putPointConfigs
default void putPointConfigs(Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> configs, @Nullable String name) putPointConfigs registersPointsConfig
for numeric Lucene fields.- Parameters:
configs
- global point config map, put point configs here if neededname
- field name
-