-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Skip UTF8 to UTF16 conversion during document indexing #126492
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
Merged
jordan-powers
merged 57 commits into
elastic:main
from
jordan-powers:prototype-skip-utf16
Jun 6, 2025
Merged
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
2153322
Prototype avoid UTF8 to UTF16 conversion
jordan-powers eaa66bb
Rename to ESBytesRef
jordan-powers c5d71f7
Apply spotless
jordan-powers a277aea
Some cleanup and comments
jordan-powers 74822c2
Remove unnecessary throws IOException
jordan-powers a9ee991
Fix missing bytesValue call
jordan-powers ae432e1
Fix subsequent calls to parser.getText() after a call to parser.getVa…
jordan-powers 3d1bec4
Use cached stringEnd on subsequent calls to getValueAsByteRef()
jordan-powers 702ada2
Spotless
jordan-powers e2ebb92
Add textRefOrNull to DotExpandingXContentParser
jordan-powers 4a6fe60
Add textRefOrNull() override to MultiFieldParser
jordan-powers 240fbdb
Avoid cloning ByteSourceJsonBootstrapper
jordan-powers c1affcf
Rename ESBytesRef to XBytesRef
jordan-powers ddf7495
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers e285349
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers b0f3336
Add tests for ESJsonFactory
jordan-powers f2f106f
Add tests for ESUTF8StreamJsonParser
jordan-powers b0f701c
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 20616e6
Move RawString class into separate file and rename to EncodedString
jordan-powers 1f66ff2
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers fd4ec6c
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 8913ca5
Combine XBytesRef and EncodedString into XContentString
jordan-powers 082ffeb
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 3526556
Add missing override for new xContentText()
jordan-powers 0ca2b60
Fix override in DotExpandingXContentParser
jordan-powers c12f1b1
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 9c88362
Fix GeoPointFieldMapper geohash
jordan-powers 0d7ff66
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers d413cd3
Add some more tests
jordan-powers deefb81
Split Text and BytesReference and move base api to libs/core
jordan-powers 681ce38
Use new BaseText and BaseBytesReference types
jordan-powers b31c2e0
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 603af45
Implement TODO UTF8 to UTF16 conversion
jordan-powers 68d6c2d
Rename xContentText to optimizedText
jordan-powers 1364683
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 70202da
Rename xContentText in tests too
jordan-powers b3f4e04
Revert "Split Text and BytesReference and move base api to libs/core"
jordan-powers a40bee3
Move Text to :libs:x-content
jordan-powers 84921aa
Use Text instead of XContentString
jordan-powers dbbdbb1
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 9380a0b
Fix missed reference to XContentString
jordan-powers ca03f87
Fix CI
jordan-powers 180078c
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers b3a0bbf
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 8e36b5a
Rename test in BaseXContentTestCase to match
jordan-powers fb2394f
Update optimizedText to return XContentString interface
jordan-powers b9dc1da
Fix renamed length to stringLength
jordan-powers c38ff8a
Add OptimizedTextBenchmark
jordan-powers 6c6b11e
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers de33cb6
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers d75f180
Use new UTF8Bytes class
jordan-powers bcb195e
Use unsigned comparison in UTF8Bytes#compareTo
jordan-powers 4c76525
Use encoded value when recording array offsets
jordan-powers 986d1f6
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers d3b9496
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 9b53320
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers 91313b5
Merge remote-tracking branch 'upstream/main' into prototype-skip-utf16
jordan-powers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Move Text to :libs:x-content
- Loading branch information
commit a40bee33230435fa14b7cf863d27c55159ab166e
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think this is a good change, but also that it might be better if this gets done in a smaller, self-contained preliminary PR.
It will reduce the complexity of this one, can be merged quickly, and it would be helpful to pinpoint and/or reduce the blast radius in case of problems