FloatVectorSimilarityQuery

constructor(field: String, target: FloatArray, traversalSimilarity: Float, resultSimilarity: Float, filter: Query? = null)


constructor(field: String, target: FloatArray, traversalSimilarity: Float, resultSimilarity: Float)

Search for all (approximate) float vectors above a similarity threshold using VectorSimilarityCollector.

Parameters

field

a field that has been indexed as a KnnFloatVectorField.

target

the target of the search.

traversalSimilarity

(lower) similarity score for graph traversal.

resultSimilarity

(higher) similarity score for result collection.


constructor(field: String, target: FloatArray, resultSimilarity: Float, filter: Query?)

Search for all (approximate) float vectors above a similarity threshold using VectorSimilarityCollector. If a filter is applied, it traverses as many nodes as the cost of the filter, and then falls back to exact search if results are incomplete.

Parameters

field

a field that has been indexed as a KnnFloatVectorField.

target

the target of the search.

resultSimilarity

similarity score for result collection.

filter

a filter applied before the vector search.


constructor(field: String, target: FloatArray, resultSimilarity: Float)

Search for all (approximate) float vectors above a similarity threshold using VectorSimilarityCollector.

Parameters

field

a field that has been indexed as a KnnFloatVectorField.

target

the target of the search.

resultSimilarity

similarity score for result collection.