Package org.elasticsearch.index.mapper
Class TextParams
java.lang.Object
org.elasticsearch.index.mapper.TextParams
Utility functions for text mapper parameters
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.document.FieldType
buildFieldType(Supplier<Boolean> indexed, Supplier<Boolean> stored, Supplier<String> indexOptions, Supplier<Boolean> norms, Supplier<String> termVectors)
static FieldMapper.Parameter<String>
indexOptions(Function<FieldMapper,String> initializer)
static FieldMapper.Parameter<Boolean>
norms(boolean defaultValue, Function<FieldMapper,Boolean> initializer)
static void
setTermVectorParams(String configuration, org.apache.lucene.document.FieldType fieldType)
static FieldMapper.Parameter<String>
termVectors(Function<FieldMapper,String> initializer)
static org.apache.lucene.index.IndexOptions
toIndexOptions(boolean indexed, String indexOptions)
-
Method Details
-
norms
public static FieldMapper.Parameter<Boolean> norms(boolean defaultValue, Function<FieldMapper,Boolean> initializer) -
similarity
public static FieldMapper.Parameter<SimilarityProvider> similarity(Function<FieldMapper,SimilarityProvider> init) -
indexOptions
-
buildFieldType
-
toIndexOptions
public static org.apache.lucene.index.IndexOptions toIndexOptions(boolean indexed, String indexOptions) -
termVectors
-
setTermVectorParams
public static void setTermVectorParams(String configuration, org.apache.lucene.document.FieldType fieldType)
-