-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Pull match_only_text fixes into main #130049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull match_only_text fixes into main #130049
Conversation
Fix class cast issue in bwc for match_only_text fields. Co-authored-by: Martijn van Groningen <[email protected]>
martijnvg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...per-extras/src/main/java/org/elasticsearch/index/mapper/extras/MatchOnlyTextFieldMapper.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Martijn van Groningen <[email protected]>
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
| @Override | ||
| public BlockLoader blockLoader(BlockLoaderContext blContext) { | ||
| if (textFieldType.isSyntheticSource()) { | ||
| return new BlockStoredFieldsReader.BytesFromBytesRefsBlockLoader(storedFieldNameForSyntheticSource()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before I forget. In a follow up, let's add index version for this? So that we can only use BytesFromMixedStringsBytesRefBlockLoader when we need to and otherwise use BlockStoredFieldsReader.BytesFromBytesRefsBlockLoader.
This brings in the fixes from elastic#130020, with minor fixes to address review nits from that PR. Co-authored-by: Martijn van Groningen <[email protected]>
💔 Backport failed
You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Pull match_only_text fixes into main (#130049) This brings in the fixes from #130020, with minor fixes to address review nits from that PR. Co-authored-by: Martijn van Groningen <[email protected]> (cherry picked from commit 40a7d02) # Conflicts: # qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/MatchOnlyTextRollingUpgradeIT.java * Fix base class of MatchOnlyTextRollingUpgradeIT * Add missing assumption to MatchOnlyTextRollingUpgradeIT
This brings in the fixes from elastic#130020, with minor fixes to address review nits from that PR. Co-authored-by: Martijn van Groningen <[email protected]>
This brings in the fixes from #130020, with minor fixes to address review nits from that PR. Co-authored-by: Martijn van Groningen <[email protected]>
…lastic#130363) Follow-up to elastic#130049 to gate using the binary format for the stored field in match_only_text fields behind an index version.
…ormat (#130363) (#130416) * Add index version for match_only_text stored field in binary format (#130363) Follow-up to #130049 to gate using the binary format for the stored field in match_only_text fields behind an index version. (cherry picked from commit a69c484) # Conflicts: # server/src/main/java/org/elasticsearch/index/IndexVersions.java * Fix IndexVersion in testLoadSyntheticSourceFromStringOrBytesRef * Trigger build for auto-merge
…lastic#130363) Follow-up to elastic#130049 to gate using the binary format for the stored field in match_only_text fields behind an index version.
This brings in the fixes from elastic#130020, with minor fixes to address review nits from that PR. Co-authored-by: Martijn van Groningen <[email protected]>
…lastic#130363) Follow-up to elastic#130049 to gate using the binary format for the stored field in match_only_text fields behind an index version.
This brings in the fixes from #130020, with minor updates to address review nits from that PR.