Knn
February 14, 2026 ยท View on GitHub
Object representing a k-nearest neighbor search query
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| field | String | Field to perform the k-nearest neighbor search on | |
| k | Integer | The number of nearest neighbors to return | |
| query | KnnQuery | [optional] | |
| queryVector | List<BigDecimal> | The vector used as input for the KNN search | [optional] |
| docId | Long | The docuemnt ID used as input for the KNN search | [optional] |
| ef | Integer | Optional parameter controlling the accuracy of the search | [optional] |
| rescore | Boolean | Optional parameter enabling KNN rescoring (disabled by default) | [optional] |
| oversampling | BigDecimal | Optional parameter setting a factor by which k is multiplied when executing the KNN search | [optional] |
| filter | QueryFilter | [optional] |