Name | Type | Description | Notes |
---|---|---|---|
Field | string | Field to perform the k-nearest neighbor search on | |
K | int32 | The number of nearest neighbors to return | |
QueryVector | Pointer to []float32 | The vector used as input for the KNN search | [optional] |
DocId | Pointer to int64 | The docuemnt ID used as input for the KNN search | [optional] |
Ef | Pointer to int32 | Optional parameter controlling the accuracy of the search | [optional] |
Filter | Pointer to QueryFilter | [optional] |
func NewKnnQuery(field string, k int32, ) *KnnQuery
NewKnnQuery instantiates a new KnnQuery object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewKnnQueryWithDefaults() *KnnQuery
NewKnnQueryWithDefaults instantiates a new KnnQuery object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *KnnQuery) GetField() string
GetField returns the Field field if non-nil, zero value otherwise.
func (o *KnnQuery) GetFieldOk() (*string, bool)
GetFieldOk returns a tuple with the Field field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KnnQuery) SetField(v string)
SetField sets Field field to given value.
func (o *KnnQuery) GetK() int32
GetK returns the K field if non-nil, zero value otherwise.
func (o *KnnQuery) GetKOk() (*int32, bool)
GetKOk returns a tuple with the K field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KnnQuery) SetK(v int32)
SetK sets K field to given value.
func (o *KnnQuery) GetQueryVector() []float32
GetQueryVector returns the QueryVector field if non-nil, zero value otherwise.
func (o *KnnQuery) GetQueryVectorOk() (*[]float32, bool)
GetQueryVectorOk returns a tuple with the QueryVector field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KnnQuery) SetQueryVector(v []float32)
SetQueryVector sets QueryVector field to given value.
func (o *KnnQuery) HasQueryVector() bool
HasQueryVector returns a boolean if a field has been set.
func (o *KnnQuery) GetDocId() int64
GetDocId returns the DocId field if non-nil, zero value otherwise.
func (o *KnnQuery) GetDocIdOk() (*int64, bool)
GetDocIdOk returns a tuple with the DocId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KnnQuery) SetDocId(v int64)
SetDocId sets DocId field to given value.
func (o *KnnQuery) HasDocId() bool
HasDocId returns a boolean if a field has been set.
func (o *KnnQuery) GetEf() int32
GetEf returns the Ef field if non-nil, zero value otherwise.
func (o *KnnQuery) GetEfOk() (*int32, bool)
GetEfOk returns a tuple with the Ef field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KnnQuery) SetEf(v int32)
SetEf sets Ef field to given value.
func (o *KnnQuery) HasEf() bool
HasEf returns a boolean if a field has been set.
func (o *KnnQuery) GetFilter() QueryFilter
GetFilter returns the Filter field if non-nil, zero value otherwise.
func (o *KnnQuery) GetFilterOk() (*QueryFilter, bool)
GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *KnnQuery) SetFilter(v QueryFilter)
SetFilter sets Filter field to given value.
func (o *KnnQuery) HasFilter() bool
HasFilter returns a boolean if a field has been set.