Commit b50cefe
Add Sparse Vector Index Options Settings to Semantic Text Field (#131058)
* add sparse vector index options to semantic text
* [CI] Auto commit changes from spotless
* current tests - not 100% working yet
* sparse_vector index options/createEmbeddingsField
* set default index options if we don't have any
* [CI] Auto commit changes from spotless
* remove redundant code; set defaults
* fix tests
* add validation test
* [CI] Auto commit changes from spotless
* add additional tests
* [CI] Auto commit changes from spotless
* fix tests
* [CI] Auto commit changes from spotless
* ... and fix tests...
* [CI] Auto commit changes from spotless
* fill in test specific sparse vector index options
* remove unused node feature
* [CI] Auto commit changes from spotless
* Update docs/changelog/131058.yaml
* update changelog
* some cleanups; still needs a few more tests
* [CI] Auto commit changes from spotless
* fix additional tests
* [CI] Auto commit changes from spotless
* and fix more tests
* ... annnnd... fix more tests
* [CI] Auto commit changes from spotless
* clean tests; add YAML Rest tests
* [CI] Auto commit changes from spotless
* fix failing tests
* [CI] Auto commit changes from spotless
* fix tests due to multiple random index versioning
* [CI] Auto commit changes from spotless
* fix tests; fix yaml tests;
* [CI] Auto commit changes from spotless
* fix more tests due to random index versioning
* [CI] Auto commit changes from spotless
* ... and more test cleeaning
* [CI] Auto commit changes from spotless
* add link to sparse_vector index_options for docs
* fix docs
* fix tests; remove old code
* correct tests; simplify mocking/spy ModelRegistry
* add test for dense vector w/ sparse index options
* [CI] Auto commit changes from spotless
* collapse multiple "@before" methods
---------
Co-authored-by: elasticsearchmachine <[email protected]>1 parent afc2051 commit b50cefe
File tree
12 files changed
+1489
-155
lines changed- docs
- changelog
- reference/elasticsearch/mapping-reference
- server/src
- main/java/org/elasticsearch/index/mapper/vectors
- test/java/org/elasticsearch/index/mapper/vectors
- x-pack/plugin/inference/src
- main/java/org/elasticsearch/xpack/inference
- mapper
- test/java/org/elasticsearch/xpack/inference
- mapper
- model
- yamlRestTest/resources/rest-api-spec/test/inference
12 files changed
+1489
-155
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
410 | 412 | | |
411 | 413 | | |
412 | 414 | | |
413 | | - | |
| 415 | + | |
414 | 416 | | |
415 | 417 | | |
416 | 418 | | |
| |||
Lines changed: 52 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
132 | 131 | | |
133 | | - | |
| 132 | + | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| |||
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 151 | + | |
| 152 | + | |
157 | 153 | | |
158 | 154 | | |
159 | | - | |
160 | | - | |
| 155 | + | |
| 156 | + | |
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
164 | | - | |
| 160 | + | |
165 | 161 | | |
166 | 162 | | |
167 | 163 | | |
168 | | - | |
| 164 | + | |
169 | 165 | | |
170 | | - | |
| 166 | + | |
171 | 167 | | |
172 | 168 | | |
173 | 169 | | |
174 | | - | |
175 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
567 | 570 | | |
568 | 571 | | |
569 | 572 | | |
570 | 573 | | |
571 | | - | |
| 574 | + | |
572 | 575 | | |
573 | 576 | | |
574 | 577 | | |
| |||
585 | 588 | | |
586 | 589 | | |
587 | 590 | | |
588 | | - | |
589 | | - | |
| 591 | + | |
| 592 | + | |
590 | 593 | | |
591 | 594 | | |
592 | 595 | | |
593 | 596 | | |
594 | 597 | | |
595 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
596 | 622 | | |
597 | 623 | | |
598 | 624 | | |
| |||
626 | 652 | | |
627 | 653 | | |
628 | 654 | | |
629 | | - | |
| 655 | + | |
630 | 656 | | |
631 | 657 | | |
632 | 658 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
909 | 913 | | |
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 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 | + | |
43 | 67 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
0 commit comments