diff options
Diffstat (limited to 'config-model/src/test/derived/hnsw_index')
-rw-r--r-- | config-model/src/test/derived/hnsw_index/attributes.cfg | 27 | ||||
-rw-r--r-- | config-model/src/test/derived/hnsw_index/ilscripts.cfg | 2 | ||||
-rw-r--r-- | config-model/src/test/derived/hnsw_index/test.sd | 10 |
3 files changed, 38 insertions, 1 deletions
diff --git a/config-model/src/test/derived/hnsw_index/attributes.cfg b/config-model/src/test/derived/hnsw_index/attributes.cfg index b61fd7e2ee5..087a116f4cd 100644 --- a/config-model/src/test/derived/hnsw_index/attributes.cfg +++ b/config-model/src/test/derived/hnsw_index/attributes.cfg @@ -19,7 +19,34 @@ attribute[].upperbound 9223372036854775807 attribute[].densepostinglistthreshold 0.4 attribute[].tensortype "tensor(x[128])" attribute[].imported false +attribute[].distancemetric ANGULAR attribute[].index.hnsw.enabled true attribute[].index.hnsw.maxlinkspernode 32 attribute[].index.hnsw.distancemetric ANGULAR attribute[].index.hnsw.neighborstoexploreatinsert 300 +attribute[].name "t2" +attribute[].datatype TENSOR +attribute[].collectiontype SINGLE +attribute[].removeifzero false +attribute[].createifnonexistent false +attribute[].fastsearch false +attribute[].huge false +attribute[].ismutable false +attribute[].sortascending true +attribute[].sortfunction UCA +attribute[].sortstrength PRIMARY +attribute[].sortlocale "" +attribute[].enablebitvectors false +attribute[].enableonlybitvector false +attribute[].fastaccess false +attribute[].arity 8 +attribute[].lowerbound -9223372036854775808 +attribute[].upperbound 9223372036854775807 +attribute[].densepostinglistthreshold 0.4 +attribute[].tensortype "tensor(x[2])" +attribute[].imported false +attribute[].distancemetric GEODEGREES +attribute[].index.hnsw.enabled false +attribute[].index.hnsw.maxlinkspernode 16 +attribute[].index.hnsw.distancemetric EUCLIDEAN +attribute[].index.hnsw.neighborstoexploreatinsert 200 diff --git a/config-model/src/test/derived/hnsw_index/ilscripts.cfg b/config-model/src/test/derived/hnsw_index/ilscripts.cfg index e9fc265ca67..0c8266336b1 100644 --- a/config-model/src/test/derived/hnsw_index/ilscripts.cfg +++ b/config-model/src/test/derived/hnsw_index/ilscripts.cfg @@ -2,4 +2,6 @@ maxtermoccurrences 100 fieldmatchmaxlength 1000000 ilscript[].doctype "test" ilscript[].docfield[] "t1" +ilscript[].docfield[] "t2" ilscript[].content[] "clear_state | guard { input t1 | attribute t1 | index t1; }" +ilscript[].content[] "clear_state | guard { input t2 | attribute t2; }" diff --git a/config-model/src/test/derived/hnsw_index/test.sd b/config-model/src/test/derived/hnsw_index/test.sd index 207ed764a87..82291be9747 100644 --- a/config-model/src/test/derived/hnsw_index/test.sd +++ b/config-model/src/test/derived/hnsw_index/test.sd @@ -2,13 +2,21 @@ search test { document test { field t1 type tensor(x[128]) { indexing: attribute | index - index { + attribute { distance-metric: angular + } + index { hnsw { max-links-per-node: 32 neighbors-to-explore-at-insert: 300 } } } + field t2 type tensor(x[2]) { + indexing: attribute + attribute { + distance-metric: geodegrees + } + } } } |