Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESQL: Fix a bug loading unindexed text fields (#104553)
This fixes a bug in ESQL where we wouldn't load non-indexed `text` fields. Those aren't all that common, but they absolutely can appear in enrich indices. Like, why wouldn't you index a `text` fields? It's *for* indexing. But in an enrich index elasticsearch control the mapping. It just turns off indexing. So you can accidentally get non-indexed `text` fields. Anyway! This fixes the bug. The trouble was that we were checking for norms on the text field if the analyzer made norms. But, oh no! If the field isn't indexed there won't be norms! Disaster. And, of course, we weren't checking that. I thought the way we checked if the norms existed was going to pick up if indexing was turned off. It doesn't. This fixes it.
- Loading branch information
Showing
8 changed files
with
274 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 104553 | ||
summary: "ESQL: Fix a bug loading unindexed text fields" | ||
area: ES|QL | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
220 changes: 220 additions & 0 deletions
220
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/62_extra_enrich.yml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters