Commit cc45de8
committed
Fix knn search error when dimensions are not set (elastic#131081)
* Unmute tests muted in elastic#129550 as they were fixed in elastic#127322
* Return no match when no dimensions have been set
* Add tests
* Update docs/changelog/131081.yaml
(cherry picked from commit bbc4cef)
# Conflicts:
# server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java
# server/src/main/java/org/elasticsearch/search/SearchFeatures.java
# x-pack/plugin/esql/qa/testFixtures/src/main/resources/knn-function.csv-spec1 parent d6dfc2c commit cc45de8
File tree
4 files changed
+45
-1
lines changed- docs/changelog
- rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors
- server/src/main/java/org/elasticsearch
- index/mapper/vectors
- search
4 files changed
+45
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
2026 | 2027 | | |
2027 | 2028 | | |
2028 | 2029 | | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
2029 | 2033 | | |
2030 | 2034 | | |
2031 | 2035 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
0 commit comments