From fa9ca760fc038076531581bf94ed3a451414bda1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dematt=C3=A9?= Date: Thu, 22 May 2025 18:36:26 +0200 Subject: [PATCH] Fix the Text class package change in example plugins (#128316) --- .../elasticsearch/example/customsuggester/CustomSuggester.java | 2 +- .../elasticsearch/example/customsuggester/CustomSuggestion.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggester.java b/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggester.java index 148324be55654..1c2e52f3c606a 100644 --- a/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggester.java +++ b/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggester.java @@ -11,7 +11,7 @@ import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.util.CharsRefBuilder; -import org.elasticsearch.common.text.Text; +import org.elasticsearch.xcontent.Text; import org.elasticsearch.search.suggest.Suggest; import org.elasticsearch.search.suggest.Suggester; diff --git a/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java b/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java index b04d62065edc2..dd349bfe1bbce 100644 --- a/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java +++ b/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java @@ -11,7 +11,7 @@ import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; -import org.elasticsearch.common.text.Text; +import org.elasticsearch.xcontent.Text; import org.elasticsearch.search.suggest.Suggest; import org.elasticsearch.xcontent.ParseField; import org.elasticsearch.xcontent.XContentBuilder;