Repository navigation
Commit 1d3838d
committed
[fix](inverted index) Align phrase support defaults across FE and BE
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: FE documented phrase support as enabled by default, but an
inverted index without parser properties omitted the setting from its metadata.
BE then interpreted the missing setting as disabled and wrote a docs-only SNII
index. Persist the default for new inverted indexes and align the BE fallback
for older metadata.
### Release note
Inverted indexes now enable phrase positions by default when support_phrase is
omitted. Explicit support_phrase=false remains unchanged.
### Check List (For Author)
- Test: FE unit test for default and explicit phrase support.
- Behavior changed: Yes, new inverted indexes with no phrase property write positions.
- Does this need documentation: No1 parent 7e63fc9 commit 1d3838d
4 files changed
Lines changed: 22 additions & 19 deletions
File tree
- be
- src/storage/index/inverted/analysis
- test/storage/index/inverted/analysis
- fe
- fe-catalog/src/main/java/org/apache/doris/catalog
- fe-core/src/test/java/org/apache/doris/catalog
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
94 | 83 | | |
95 | 84 | | |
96 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
30 | 44 | | |
31 | 45 | | |
32 | 46 | | |
| |||
0 commit comments