Module org.elasticsearch.server
Class DenseVectorFieldMapper.Int8HnswIndexOptions
java.lang.Object
org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.DenseVectorIndexOptions
org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.Int8HnswIndexOptions
- All Implemented Interfaces:
IndexOptions,ToXContent
- Enclosing class:
DenseVectorFieldMapper
public static class DenseVectorFieldMapper.Int8HnswIndexOptions
extends DenseVectorFieldMapper.DenseVectorIndexOptions
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionInt8HnswIndexOptions(int m, int efConstruction, Float confidenceInterval, DenseVectorFieldMapper.RescoreVector rescoreVector) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintorg.apache.lucene.codecs.KnnVectorsFormatgetVectorsFormat(DenseVectorFieldMapper.ElementType elementType) booleanisFlat()Indicates whether the underlying vector search is performed using a flat (exhaustive) approach.toString()toXContent(XContentBuilder builder, ToXContent.Params params) booleanMethods inherited from class org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.DenseVectorIndexOptions
equals, getType, hashCode, validate, validateDimension, validateDimension, validateElementTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Constructor Details
-
Int8HnswIndexOptions
public Int8HnswIndexOptions(int m, int efConstruction, Float confidenceInterval, DenseVectorFieldMapper.RescoreVector rescoreVector)
-
-
Method Details
-
getVectorsFormat
public org.apache.lucene.codecs.KnnVectorsFormat getVectorsFormat(DenseVectorFieldMapper.ElementType elementType) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
doEquals
-
doHashCode
public int doHashCode() -
isFlat
public boolean isFlat()Description copied from class:DenseVectorFieldMapper.DenseVectorIndexOptionsIndicates whether the underlying vector search is performed using a flat (exhaustive) approach.When
true, it means the search does not use any approximate nearest neighbor (ANN) acceleration structures such as HNSW or IVF. Instead, it performs a brute-force comparison against all candidate vectors. This information can be used by higher-level components to decide whether additional acceleration or optimization is necessary.- Specified by:
isFlatin classDenseVectorFieldMapper.DenseVectorIndexOptions- Returns:
trueif the vector search is flat (exhaustive),falseif it uses ANN structures
-
toString
-
updatableTo
- Specified by:
updatableToin classDenseVectorFieldMapper.DenseVectorIndexOptions
-