KNNQuery

zio.elasticsearch.query.KNNQuery
sealed trait KNNQuery[-S]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def similarity(value: Double): KNNQuery[S]

Sets the similarity parameter for the zio.elasticsearch.query.KNNQuery. The similarity parameter is the required minimum similarity for a vector to be considered a match.

Sets the similarity parameter for the zio.elasticsearch.query.KNNQuery. The similarity parameter is the required minimum similarity for a vector to be considered a match.

Value parameters

value

a non-negative real number used for the similarity

Attributes

Returns

an instance of zio.elasticsearch.query.KNNQuery enriched with the similarity parameter.