-
Notifications
You must be signed in to change notification settings - Fork 28
/
knn_nosup.go
68 lines (51 loc) · 1.48 KB
/
knn_nosup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright 2023-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be governed by the Apache License, Version 2.0, included in
// the file licenses/APL2.txt.
//go:build !vectors
// +build !vectors
package cbft
import (
"encoding/json"
"github.com/blevesearch/bleve/v2"
)
const featuresVectorBase64Dims4096 = ""
const featureVectorCosineSimilarity = ""
var kNNThrottleLimit int64
func FeatureVectorSearchSupport() string {
return ""
}
func featureFlagForDims(int) string {
return ""
}
// -----------------------------------------------------------------------------
func interpretKNNForRequest(knn, knnOperator json.RawMessage, r *bleve.SearchRequest) (
*bleve.SearchRequest, error) {
// Not supported
return r, nil
}
// extractKNNQueryFields is not supported
func extractKNNQueryFields(sr *bleve.SearchRequest,
queryFields map[indexProperty]struct{}) (map[indexProperty]struct{}, error) {
return queryFields, nil
}
func QueryHasKNN(req []byte) bool {
// Not supported
return false
}
func indexHasVectorFields(params string) bool {
// Not supported
return false
}
func InitKNNQueryThrottlerOptions(options map[string]string) error {
// Not supported
return nil
}
func GetKNNThrottleLimit() int64 {
return 0
}
func SetKNNThrottleLimit(val int64) {
}