Commit 393ea61
authored
Semantic text with legacy format cannot store term vectors (#119690)
This change fixes the store option of the underlying sparse vector field for semantic text.
For legacy indices, the store option should remain false since changing this option on an existing index is not allowed and that term vectors are already stored in _source.1 parent 7262fb3 commit 393ea61
File tree
2 files changed
+12
-4
lines changed- x-pack/plugin/inference/src
- main/java/org/elasticsearch/xpack/inference/mapper
- test/java/org/elasticsearch/xpack/inference/mapper
2 files changed
+12
-4
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
| 861 | + | |
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
873 | 877 | | |
874 | | - | |
| 878 | + | |
875 | 879 | | |
876 | 880 | | |
877 | 881 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
| |||
0 commit comments