Skip to content

[9.0] Fixed a bug where text fields in LogsDB indices did not use their keyword multi fields for block loading (#134253)#134518

Closed
Kubik42 wants to merge 2 commits intoelastic:9.0from
Kubik42:backport/9.0/pr-134253
Closed

[9.0] Fixed a bug where text fields in LogsDB indices did not use their keyword multi fields for block loading (#134253)#134518
Kubik42 wants to merge 2 commits intoelastic:9.0from
Kubik42:backport/9.0/pr-134253

Conversation

@Kubik42
Copy link
Contributor

@Kubik42 Kubik42 commented Sep 11, 2025

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

…word 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
@Kubik42 Kubik42 closed this Sep 11, 2025
@Kubik42 Kubik42 deleted the backport/9.0/pr-134253 branch September 11, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants