You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed a bug where text fields in LogsDB indices did not use their keyword multi fields for block loading (elastic#134253)
* Added keyword multi field with ignore_above to match only text bwc tests
* Rework ignore_above
* Added unit tests
* Undo changed to match only text bwc test
* formatting
* Removed indexMode from field type
* Added another test case
* Fixed failing bwc tests
* Improved msg
* Added additional tests
* Added IgnoreAbove record, addressed index-level ignore above
* Fixed test typos
* Added IgnoreAboveTest
* Enforce at least one value or defaultValue to always be non-null when IgnoreAbove is initialized
* When initializing IgnoreAbove, dont use defaultValue from builder - this fixes failing BWC test
* Fixed typo
* Switched IgnoreAbove to constructor only, removed the ability to set default directly
* Update docs/changelog/134253.yaml
* Update 134253.yaml
* Move IgnoreAbove into Mapper and make it final, move everything new out of IndexSettings and into IgnoreAbove
* Fixed typo
* Added helpful constructor to IgnoreAbove
* Added helpful constructor to IgnoreAbove
(cherry picked from commit 2c3bee7)
# Conflicts:
# modules/mapper-extras/src/main/java/org/elasticsearch/index/mapper/extras/MatchOnlyTextFieldMapper.java
# qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/TextRollingUpgradeIT.java
# server/src/main/java/org/elasticsearch/index/mapper/FieldMapper.java
# server/src/main/java/org/elasticsearch/index/mapper/KeywordFieldMapper.java
# server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java
# server/src/test/java/org/elasticsearch/index/mapper/KeywordFieldTypeTests.java
# server/src/test/java/org/elasticsearch/index/mapper/MultiFieldsTests.java
# x-pack/plugin/wildcard/src/main/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapper.java
Copy file name to clipboardExpand all lines: plugins/analysis-icu/src/main/java/org/elasticsearch/plugin/analysis/icu/ICUCollationKeywordFieldMapper.java
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -250,12 +250,10 @@ public static class Builder extends FieldMapper.Builder {
250
250
false
251
251
).acceptsNull();
252
252
253
-
finalParameter<Integer> ignoreAbove = Parameter.intParam("ignore_above", true, m -> toType(m).ignoreAbove, Integer.MAX_VALUE)
254
-
.addValidator(v -> {
255
-
if (v < 0) {
256
-
thrownewIllegalArgumentException("[ignore_above] must be positive, got [" + v + "]");
0 commit comments