Package ch.rswk.meta.engine
Class MetaSchema.StringFieldGenerator
java.lang.Object
ch.rswk.meta.engine.MetaSchema.AbstractSchemaFieldGenerator
ch.rswk.meta.engine.MetaSchema.StringFieldGenerator
- All Implemented Interfaces:
MetaSchema.FieldGenerator
- Enclosing class:
MetaSchema
private static class MetaSchema.StringFieldGenerator
extends MetaSchema.AbstractSchemaFieldGenerator
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.rswk.meta.engine.MetaSchema.FieldGenerator
putAnalyzers, putPointConfigs
-
Constructor Details
-
StringFieldGenerator
private StringFieldGenerator()
-
-
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
-
schema
- Specified by:
schema
in classMetaSchema.AbstractSchemaFieldGenerator
- Returns:
- json schema based on
MetaSchema.JSON_DRAFT_SCHEMA_URI
- See Also:
-
typeRef
- Overrides:
typeRef
in classMetaSchema.AbstractSchemaFieldGenerator
-
type
Description copied from class:MetaSchema.AbstractSchemaFieldGenerator
type returns the name of the schema type. The final typeRef is prefixed withMetaSchema.META_URI_SCHEME
.- Specified by:
type
in classMetaSchema.AbstractSchemaFieldGenerator
-