Module org.elasticsearch.server
Class SparseVectorFieldMapper.SparseVectorIndexOptions
java.lang.Object
org.elasticsearch.index.mapper.vectors.SparseVectorFieldMapper.SparseVectorIndexOptions
- All Implemented Interfaces:
IndexOptions,ToXContent
- Enclosing class:
SparseVectorFieldMapper
public static class SparseVectorFieldMapper.SparseVectorIndexOptions
extends Object
implements IndexOptions
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SparseVectorFieldMapper.SparseVectorIndexOptionsstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleangetDefaultIndexOptions(IndexVersion indexVersion) getPrune()final inthashCode()static booleanisDefaultOptions(SparseVectorFieldMapper.SparseVectorIndexOptions indexOptions, IndexVersion indexVersion) parseFromMap(Map<String, Object> map) toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Field Details
-
PRUNE_FIELD_NAME
-
PRUNING_CONFIG_FIELD_NAME
-
DEFAULT_PRUNING_INDEX_OPTIONS
-
-
Constructor Details
-
SparseVectorIndexOptions
public SparseVectorIndexOptions(@Nullable Boolean prune, @Nullable TokenPruningConfig pruningConfig)
-
-
Method Details
-
isDefaultOptions
public static boolean isDefaultOptions(SparseVectorFieldMapper.SparseVectorIndexOptions indexOptions, IndexVersion indexVersion) -
getDefaultIndexOptions
public static SparseVectorFieldMapper.SparseVectorIndexOptions getDefaultIndexOptions(IndexVersion indexVersion) -
parseFromMap
-
getPrune
-
getPruningConfig
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public final int hashCode()
-