File tree Expand file tree Collapse file tree 1 file changed +0
-53
lines changed
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors Expand file tree Collapse file tree 1 file changed +0
-53
lines changed Original file line number Diff line number Diff line change 589589 - match : { hits.hits.0.fields.ml\\.tokens.0.run: 5.0 }
590590 - match : { hits.hits.0.fields.ml\\.tokens.0.race: 7.0 }
591591 - match : { hits.hits.0.fields.ml\\.tokens.0.for: 9.0 }
592-
593- ---
594- " sparse_vector token pruning index options support " :
595- - requires :
596- cluster_features : ' sparse_vector_index_options_supported'
597- reason : " sparse_vector token pruning index options added support in 9.1"
598-
599- - do :
600- indices.create :
601- index : test
602- body :
603- mappings :
604- properties :
605- text :
606- type : text
607- ml.tokens :
608- type : sparse_vector
609- index_options :
610- prune : true
611- pruning_config :
612- tokens_freq_ratio_threshold : 1.0
613- tokens_weight_threshold : 0.4
614- embeddings :
615- type : sparse_vector
616-
617- - match : { acknowledged: true }
618-
619- - do :
620- index :
621- index : test
622- id : " 1"
623- body :
624- text : " running is good for you"
625- ml :
626- tokens :
627- running : 2.4097164
628- good : 2.170997
629- run : 2.052153
630- race : 1.4575411
631- for : 1.1908325
632- runner : 1.1803857
633- exercise : 1.1652642
634- you : 0.9654308
635- training : 0.94999343
636- sports : 0.93650943
637- fitness : 0.83129317
638- best : 0.820365
639- bad : 0.7385934
640- health : 0.7098149
641- marathon : 0.61555296
642- gym : 0.5652374
643-
644- - match : { result: "created" }
You can’t perform that action at this time.
0 commit comments