aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/hnsw_index/test.sd
blob: 30f804bae99122a8bc08d636b0710444d6425ccd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema test {
  document test {
    field t1 type tensor(x[128]) {
      indexing: attribute | index
      attribute {
        distance-metric: prenormalized-angular
      }
      index {
        hnsw {
          max-links-per-node: 32
          neighbors-to-explore-at-insert: 300
          multi-threaded-indexing: false
        }
      }
    }
    field t2 type tensor(x[2]) {
      indexing: attribute
      attribute {
        distance-metric: geodegrees
      }
    }
  }
}