[pick 2.1 ][fix ut][fix](inverted index) cloud mode supports lowercase (#32841) (#36034)

pick from master #32841 
Co-authored-by: zzzxl <33418555+zzzxl1993@users.noreply.github.com>
This commit is contained in:
qiye
2024-06-07 17:08:29 +08:00
committed by GitHub
parent a518915626
commit 19bc98a11a
6 changed files with 34 additions and 16 deletions

View File

@ -69,6 +69,14 @@ public class Index implements Writable {
this.indexType = indexType;
this.properties = properties;
this.comment = comment;
if (indexType == IndexDef.IndexType.INVERTED) {
if (this.properties != null && !this.properties.isEmpty()) {
String key = InvertedIndexUtil.INVERTED_INDEX_PARSER_LOWERCASE_KEY;
if (!properties.containsKey(key)) {
this.properties.put(key, "true");
}
}
}
}
public Index() {