Package org.apache.solr.schema
Class ScalarQuantizedDenseVectorField
java.lang.Object
org.apache.solr.schema.FieldProperties
org.apache.solr.schema.FieldType
org.apache.solr.schema.PrimitiveFieldType
org.apache.solr.schema.NumericFieldType
org.apache.solr.schema.PointField
org.apache.solr.schema.FloatPointField
org.apache.solr.schema.DenseVectorField
org.apache.solr.schema.ScalarQuantizedDenseVectorField
- All Implemented Interfaces:
FloatValueFieldType,NumericValueFieldType
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.schema.FieldType
FieldType.DefaultAnalyzer, FieldType.MultiValueSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.solr.schema.DenseVectorField
CAGRA_HNSW_ALGORITHM, DEFAULT_KNN_ALGORITHM, HNSW_ALGORITHMFields inherited from class org.apache.solr.schema.PointField
TEST_HACK_IGNORE_USELESS_TRIEFIELD_ARGSFields inherited from class org.apache.solr.schema.NumericFieldType
doubleOrFloat, typeFields inherited from class org.apache.solr.schema.FieldType
ANALYZER, args, AUTO_GENERATE_PHRASE_QUERIES, CHAR_FILTER, CHAR_FILTERS, CLASS_NAME, docValuesFormat, ENABLE_GRAPH_QUERIES, falseProperties, FILTER, FILTERS, INDEX, INDEX_ANALYZER, MULTI_TERM, MULTI_TERM_ANALYZER, POLY_FIELD_SEPARATOR, postingsFormat, properties, QUERY, QUERY_ANALYZER, similarity, SIMILARITY, similarityFactory, SYNONYM_QUERY_STYLE, TOKENIZER, trueProperties, TYPE, TYPE_NAME, typeNameFields inherited from class org.apache.solr.schema.FieldProperties
BINARY, DOC_VALUES, INDEXED, LARGE_FIELD, MULTIVALUED, OMIT_NORMS, OMIT_POSITIONS, OMIT_TF_POSITIONS, REQUIRED, SORT_MISSING_FIRST, SORT_MISSING_LAST, STORE_OFFSETS, STORE_TERMOFFSETS, STORE_TERMPAYLOADS, STORE_TERMPOSITIONS, STORE_TERMVECTORS, STORED, TOKENIZED, UNINVERTIBLE, USE_DOCVALUES_AS_STORED -
Constructor Summary
ConstructorsConstructorDescriptionScalarQuantizedDenseVectorField(int dimension, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, org.apache.lucene.index.VectorEncoding vectorEncoding, int bits, Float confidenceInterval, boolean compress) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.KnnVectorsFormatvoidcheckSchemaField(SchemaField field) Check'sSchemaFieldinstances constructed using this field type to ensure that they are valid.intgetBits()voidinit(IndexSchema schema, Map<String, String> args) NOTE: This method can be removed completely whenPointField.TEST_HACK_IGNORE_USELESS_TRIEFIELD_ARGSis removedbooleanMethods inherited from class org.apache.solr.schema.DenseVectorField
createField, createFields, enableDocValuesByDefault, getCuvsGraphDegree, getCuvsHnswEfConstruction, getCuvsHnswLayers, getCuvsHnswMaxConn, getCuvsIntGraphDegree, getCuvsWriterThreads, getDimension, getFieldQuery, getHnswBeamWidth, getHnswEfConstruction, getHnswM, getHnswMaxConn, getKnnAlgorithm, getKnnVectorQuery, getRangeQuery, getSimilarityFunction, getSortField, getUninversionType, getValueSource, getVectorBuilder, getVectorEncoding, toObjectMethods inherited from class org.apache.solr.schema.FloatPointField
getExactQuery, getPointRangeQuery, getSetQuery, getSingleValueSource, getStoredField, indexedToReadable, readableToIndexed, toNativeType, toObjectMethods inherited from class org.apache.solr.schema.PointField
getPrefixQuery, getSingleValueSource, getSpecializedRangeQuery, indexedToReadable, indexedToReadable, isFieldUsed, isPointField, isTokenized, multiValuedFieldCache, storedToIndexed, storedToReadable, toInternal, toInternalByteRef, writeMethods inherited from class org.apache.solr.schema.NumericFieldType
getDocValuesRangeQuery, getNumberType, getRangeQueryForFloatDoubleDocValues, getRangeQueryForMultiValuedDoubleDocValues, getRangeQueryForMultiValuedFloatDocValues, getSpecializedExistenceQuery, numericDocValuesRangeQuery, treatUnboundedRangeAsExistenceMethods inherited from class org.apache.solr.schema.PrimitiveFieldType
checkSupportsDocValues, getDefaultMultiValueSelectorForSortMethods inherited from class org.apache.solr.schema.FieldType
createField, getAnalyzerProperties, getClassArg, getDocValuesFormat, getExistenceQuery, getFieldTermQuery, getIndexAnalyzer, getNamedPropertyValues, getNonFieldPropertyArgs, getNumericSort, getPostingsFormat, getQueryAnalyzer, getRewriteMethod, getSimilarity, getSimilarityFactory, getSortedNumericSortField, getSortedSetSortField, getSortField, getStringSort, getTypeName, hasProperty, isExplicitAnalyzer, isExplicitQueryAnalyzer, isMultiValued, isPolyField, isUtf8Field, marshalBase64SortValue, marshalSortValue, marshalStringSortValue, readableToIndexed, restrictProps, setArgs, setIndexAnalyzer, setIsExplicitAnalyzer, setIsExplicitQueryAnalyzer, setQueryAnalyzer, setSimilarity, supportsAnalyzers, toExternal, toString, unmarshalBase64SortValue, unmarshalSortValue, unmarshalStringSortValue, useDocValuesAsStored, write
-
Field Details
-
BITS_PARAM
- See Also:
-
CONFIDENCE_INTERVAL_PARAM
- See Also:
-
DYNAMIC_CONFIDENCE_INTERVAL_PARAM
- See Also:
-
COMPRESS_PARAM
- See Also:
-
-
Constructor Details
-
ScalarQuantizedDenseVectorField
public ScalarQuantizedDenseVectorField() -
ScalarQuantizedDenseVectorField
public ScalarQuantizedDenseVectorField(int dimension, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, org.apache.lucene.index.VectorEncoding vectorEncoding, int bits, Float confidenceInterval, boolean compress)
-
-
Method Details
-
init
Description copied from class:PointFieldNOTE: This method can be removed completely whenPointField.TEST_HACK_IGNORE_USELESS_TRIEFIELD_ARGSis removed- Overrides:
initin classDenseVectorField
-
buildKnnVectorsFormat
public org.apache.lucene.codecs.KnnVectorsFormat buildKnnVectorsFormat()- Overrides:
buildKnnVectorsFormatin classDenseVectorField
-
checkSchemaField
Description copied from class:FieldTypeCheck'sSchemaFieldinstances constructed using this field type to ensure that they are valid.This method is called by the
SchemaFieldconstructor to check that its initialization does not violate any fundamental requirements of theFieldType. Subclasses may choose to throw aSolrExceptionif invariants are violated by theSchemaField.- Overrides:
checkSchemaFieldin classDenseVectorField- Throws:
org.apache.solr.common.SolrException
-
getBits
public int getBits() -
useCompression
public boolean useCompression() -
getConfidenceInterval
-