| Name | Type | Description | Notes |
|---|---|---|---|
| Field | string | Field to perform the k-nearest neighbor search on | |
| K | int32 | The number of nearest neighbors to return | |
| Query | Pointer to KnnQuery | [optional] | |
| QueryVector | Pointer to []float32 | The vector used as input for the KNN search | [optional] |
| DocId | Pointer to uint64 | The docuemnt ID used as input for the KNN search | [optional] |
| Ef | Pointer to int32 | Optional parameter controlling the accuracy of the search | [optional] |
| Rescore | Pointer to bool | Optional parameter enabling KNN rescoring (disabled by default) | [optional] |
| Oversampling | Pointer to float32 | Optional parameter setting a factor by which k is multiplied when executing the KNN search | [optional] |
| Filter | Pointer to QueryFilter | [optional] |
func NewKnn(field string, k int32, ) *Knn
NewKnn instantiates a new Knn 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 NewKnnWithDefaults() *Knn
NewKnnWithDefaults instantiates a new Knn 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 *Knn) GetField() string
GetField returns the Field field if non-nil, zero value otherwise.
func (o *Knn) 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 *Knn) SetField(v string)
SetField sets Field field to given value.
func (o *Knn) GetK() int32
GetK returns the K field if non-nil, zero value otherwise.
func (o *Knn) 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 *Knn) SetK(v int32)
SetK sets K field to given value.
func (o *Knn) GetQuery() KnnQuery
GetQuery returns the Query field if non-nil, zero value otherwise.
func (o *Knn) GetQueryOk() (*KnnQuery, bool)
GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Knn) SetQuery(v KnnQuery)
SetQuery sets Query field to given value.
func (o *Knn) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *Knn) GetQueryVector() []float32
GetQueryVector returns the QueryVector field if non-nil, zero value otherwise.
func (o *Knn) 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 *Knn) SetQueryVector(v []float32)
SetQueryVector sets QueryVector field to given value.
func (o *Knn) HasQueryVector() bool
HasQueryVector returns a boolean if a field has been set.
func (o *Knn) GetDocId() uint64
GetDocId returns the DocId field if non-nil, zero value otherwise.
func (o *Knn) GetDocIdOk() (*uint64, 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 *Knn) SetDocId(v uint64)
SetDocId sets DocId field to given value.
func (o *Knn) HasDocId() bool
HasDocId returns a boolean if a field has been set.
func (o *Knn) GetEf() int32
GetEf returns the Ef field if non-nil, zero value otherwise.
func (o *Knn) 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 *Knn) SetEf(v int32)
SetEf sets Ef field to given value.
func (o *Knn) HasEf() bool
HasEf returns a boolean if a field has been set.
func (o *Knn) GetRescore() bool
GetRescore returns the Rescore field if non-nil, zero value otherwise.
func (o *Knn) GetRescoreOk() (*bool, bool)
GetRescoreOk returns a tuple with the Rescore field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Knn) SetRescore(v bool)
SetRescore sets Rescore field to given value.
func (o *Knn) HasRescore() bool
HasRescore returns a boolean if a field has been set.
func (o *Knn) GetOversampling() float32
GetOversampling returns the Oversampling field if non-nil, zero value otherwise.
func (o *Knn) GetOversamplingOk() (*float32, bool)
GetOversamplingOk returns a tuple with the Oversampling field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Knn) SetOversampling(v float32)
SetOversampling sets Oversampling field to given value.
func (o *Knn) HasOversampling() bool
HasOversampling returns a boolean if a field has been set.
func (o *Knn) GetFilter() QueryFilter
GetFilter returns the Filter field if non-nil, zero value otherwise.
func (o *Knn) 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 *Knn) SetFilter(v QueryFilter)
SetFilter sets Filter field to given value.
func (o *Knn) HasFilter() bool
HasFilter returns a boolean if a field has been set.