Package ch.rswk.meta.engine
Class MetaSchema.UuidFieldGenerator
java.lang.Object
ch.rswk.meta.engine.MetaSchema.AbstractSchemaFieldGenerator
ch.rswk.meta.engine.MetaSchema.UuidFieldGenerator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanappendFields(org.apache.lucene.document.Document document, String metaId, @Nullable String name, boolean sortable, com.fasterxml.jackson.databind.JsonNode value) voidputAnalyzers(Map<String, org.apache.lucene.analysis.Analyzer> analyzers, @Nullable String name) putAnalyzers registersAnalyzerfor a Lucene field.schema()type()type returns the name of the schema type.Methods inherited from class ch.rswk.meta.engine.MetaSchema.AbstractSchemaFieldGenerator
typeRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.rswk.meta.engine.MetaSchema.FieldGenerator
putPointConfigs
-
Field Details
-
SCHEMA
- See Also:
-
TYPE
- See Also:
-
-
Constructor Details
-
UuidFieldGenerator
private UuidFieldGenerator()
-
-
Method Details
-
appendFields
public 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
public void putAnalyzers(Map<String, org.apache.lucene.analysis.Analyzer> analyzers, @Nullable String name) Description copied from interface:MetaSchema.FieldGeneratorputAnalyzers registersAnalyzerfor a Lucene field.- Parameters:
analyzers- global analyzer map, put analyzers here if neededname- field name
-
schema
- Specified by:
schemain classMetaSchema.AbstractSchemaFieldGenerator- Returns:
- json schema based on
MetaSchema.JSON_DRAFT_SCHEMA_URI - See Also:
-
type
Description copied from class:MetaSchema.AbstractSchemaFieldGeneratortype returns the name of the schema type. The final typeRef is prefixed withMetaSchema.META_URI_SCHEME.- Specified by:
typein classMetaSchema.AbstractSchemaFieldGenerator
-