Skip to content

Conversation

@prdoyle
Copy link
Contributor

@prdoyle prdoyle commented May 26, 2025

Backports the following commits to main:

* Revert "Fix the Text class package change in example plugins (elastic#128316)"

This reverts commit cc48648.

* Revert "Update Text class to use native java ByteBuffer (elastic#127666)"

This reverts commit db0c3c7.
@prdoyle prdoyle added :Core/Infra/Core Core issues without another label >non-issue labels May 26, 2025
@prdoyle prdoyle requested a review from a team as a code owner May 26, 2025 20:52
@prdoyle prdoyle added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport serverless-linked Added by automation, don't add manually Team:Core/Infra Meta label for core/infra team labels May 26, 2025
@elasticsearchmachine elasticsearchmachine merged commit 7690f46 into elastic:main May 27, 2025
18 checks passed
jordan-powers added a commit that referenced this pull request Jun 4, 2025
This PR is a precursor to #126492.

It does three things:
1. Move org.elasticsearch.common.text.Text from :server to
   org.elasticsearch.xcontent.Text in :libs:x-content.
2. Refactor the Text class to use a new EncodedBytes record instead of
   the elasticsearch BytesReference.
3. Add the XContentString interface, with the Text class implementing
   that interface.

These changes were originally implemented in #127666 and #128316,
however they were reverted in #128484 due to problems caused by the
mutable nature of java ByteBuffers. This is resolved by instead using a
new immutable EncodedBytes record.
elasticsearchmachine pushed a commit that referenced this pull request Jun 4, 2025
This PR is a precursor to #126492.

It does three things:
1. Move org.elasticsearch.common.text.Text from :server to
   org.elasticsearch.xcontent.Text in :libs:x-content.
2. Refactor the Text class to use a new EncodedBytes record instead of
   the elasticsearch BytesReference.
3. Add the XContentString interface, with the Text class implementing
   that interface.

These changes were originally implemented in #127666 and #128316,
however they were reverted in #128484 due to problems caused by the
mutable nature of java ByteBuffers. This is resolved by instead using a
new immutable EncodedBytes record.

(cherry picked from commit de40ac4)

# Conflicts:
#	server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/DefaultHighlighter.java
#	server/src/test/java/org/elasticsearch/common/xcontent/BaseXContentTestCase.java
#	server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightFieldTests.java
#	test/framework/src/main/java/org/elasticsearch/search/SearchResponseUtils.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Core Core issues without another label >non-issue serverless-linked Added by automation, don't add manually Team:Core/Infra Meta label for core/infra team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants