diff --git a/client/client-benchmark-noop-api-plugin/src/main/java/org/opensearch/plugin/noop/action/search/TransportNoopSearchAction.java b/client/client-benchmark-noop-api-plugin/src/main/java/org/opensearch/plugin/noop/action/search/TransportNoopSearchAction.java index 330a92bdbb7..f414605665c 100644 --- a/client/client-benchmark-noop-api-plugin/src/main/java/org/opensearch/plugin/noop/action/search/TransportNoopSearchAction.java +++ b/client/client-benchmark-noop-api-plugin/src/main/java/org/opensearch/plugin/noop/action/search/TransportNoopSearchAction.java @@ -30,9 +30,9 @@ import org.elasticsearch.common.io.stream.Writeable; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHits; import org.elasticsearch.search.aggregations.InternalAggregations; -import org.elasticsearch.search.internal.InternalSearchResponse; -import org.elasticsearch.search.profile.SearchProfileShardResults; -import org.elasticsearch.search.suggest.Suggest; +import org.opensearch.search.internal.InternalSearchResponse; +import org.opensearch.search.profile.SearchProfileShardResults; +import org.opensearch.search.suggest.Suggest; import org.opensearch.tasks.Task; import org.opensearch.transport.TransportService; diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java index 182ecb23452..565b14da5dd 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java @@ -82,7 +82,7 @@ import org.elasticsearch.index.seqno.SequenceNumbers; import org.opensearch.rest.action.search.RestSearchAction; import org.opensearch.script.mustache.MultiSearchTemplateRequest; import org.opensearch.script.mustache.SearchTemplateRequest; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java index 0d91d15f28f..a1bd8634a15 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java @@ -187,13 +187,13 @@ import org.elasticsearch.search.aggregations.pipeline.ParsedSimpleValue; import org.elasticsearch.search.aggregations.pipeline.ParsedStatsBucket; import org.elasticsearch.search.aggregations.pipeline.PercentilesBucketPipelineAggregationBuilder; import org.elasticsearch.search.aggregations.pipeline.StatsBucketPipelineAggregationBuilder; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.completion.CompletionSuggestion; -import org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestion; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder; -import org.elasticsearch.search.suggest.term.TermSuggestion; -import org.elasticsearch.search.suggest.term.TermSuggestionBuilder; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.completion.CompletionSuggestion; +import org.opensearch.search.suggest.completion.CompletionSuggestionBuilder; +import org.opensearch.search.suggest.phrase.PhraseSuggestion; +import org.opensearch.search.suggest.phrase.PhraseSuggestionBuilder; +import org.opensearch.search.suggest.term.TermSuggestion; +import org.opensearch.search.suggest.term.TermSuggestionBuilder; import java.io.Closeable; import java.io.IOException; diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/core/CountRequest.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/core/CountRequest.java index ada58bed362..cfc10ce094c 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/core/CountRequest.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/core/CountRequest.java @@ -28,7 +28,7 @@ import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.index.query.QueryBuilder; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/core/GetSourceRequest.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/core/GetSourceRequest.java index e7ca74fc61b..31c5140e4df 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/core/GetSourceRequest.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/core/GetSourceRequest.java @@ -21,7 +21,7 @@ package org.elasticsearch.client.core; import org.elasticsearch.action.get.GetRequest; import org.elasticsearch.client.Validatable; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; public final class GetSourceRequest implements Validatable { private String routing; diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/CrudIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/CrudIT.java index c5cd3e8f0ec..b76fba19507 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/CrudIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/CrudIT.java @@ -64,7 +64,7 @@ import org.opensearch.rest.action.document.RestMultiGetAction; import org.opensearch.rest.action.document.RestUpdateAction; import org.opensearch.script.Script; import org.opensearch.script.ScriptType; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.format.DateTimeFormat; diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java index 94140c1d9d1..e07e76c1502 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java @@ -97,11 +97,11 @@ import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilde import org.elasticsearch.search.aggregations.support.ValueType; import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.collapse.CollapseBuilder; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; import org.opensearch.search.rescore.QueryRescorerBuilder; -import org.elasticsearch.search.suggest.SuggestBuilder; -import org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder; +import org.opensearch.search.suggest.SuggestBuilder; +import org.opensearch.search.suggest.completion.CompletionSuggestionBuilder; import org.opensearch.tasks.TaskId; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.RandomObjects; diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java index 4640c6b0a0f..438a1f29087 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java @@ -69,7 +69,7 @@ import org.elasticsearch.search.SearchHits; import org.elasticsearch.search.aggregations.Aggregation; import org.elasticsearch.search.aggregations.InternalAggregations; import org.opensearch.search.aggregations.matrix.stats.MatrixStatsAggregationBuilder; -import org.elasticsearch.search.suggest.Suggest; +import org.opensearch.search.suggest.Suggest; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.InternalAggregationTestCase; import org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi; diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/SearchIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/SearchIT.java index e8c61b3de18..20fb8952cfe 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/SearchIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/SearchIT.java @@ -78,12 +78,12 @@ import org.elasticsearch.search.aggregations.metrics.WeightedAvgAggregationBuild import org.elasticsearch.search.aggregations.support.MultiValuesSourceFieldConfig; import org.elasticsearch.search.aggregations.support.ValueType; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; import org.opensearch.search.sort.SortOrder; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.SuggestBuilder; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.SuggestBuilder; +import org.opensearch.search.suggest.phrase.PhraseSuggestionBuilder; import org.hamcrest.Matchers; import org.junit.Before; diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/CRUDDocumentationIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/CRUDDocumentationIT.java index 3c766f9829f..74bdf882985 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/CRUDDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/CRUDDocumentationIT.java @@ -84,7 +84,7 @@ import org.elasticsearch.index.reindex.UpdateByQueryRequest; import org.opensearch.rest.RestStatus; import org.opensearch.script.Script; import org.opensearch.script.ScriptType; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; import org.opensearch.tasks.TaskId; import java.util.Collections; diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SearchDocumentationIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SearchDocumentationIT.java index 7a4bff4074c..35473d929d4 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SearchDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SearchDocumentationIT.java @@ -92,22 +92,22 @@ import org.elasticsearch.search.aggregations.bucket.terms.Terms.Bucket; import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder; import org.elasticsearch.search.aggregations.metrics.Avg; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightField; -import org.elasticsearch.search.profile.ProfileResult; -import org.elasticsearch.search.profile.ProfileShardResult; -import org.elasticsearch.search.profile.aggregation.AggregationProfileShardResult; -import org.elasticsearch.search.profile.query.CollectorResult; -import org.elasticsearch.search.profile.query.QueryProfileShardResult; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.subphase.highlight.HighlightField; +import org.opensearch.search.profile.ProfileResult; +import org.opensearch.search.profile.ProfileShardResult; +import org.opensearch.search.profile.aggregation.AggregationProfileShardResult; +import org.opensearch.search.profile.query.CollectorResult; +import org.opensearch.search.profile.query.QueryProfileShardResult; import org.opensearch.search.sort.FieldSortBuilder; import org.opensearch.search.sort.ScoreSortBuilder; import org.opensearch.search.sort.SortOrder; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.SuggestBuilder; -import org.elasticsearch.search.suggest.SuggestBuilders; -import org.elasticsearch.search.suggest.SuggestionBuilder; -import org.elasticsearch.search.suggest.term.TermSuggestion; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.SuggestBuilder; +import org.opensearch.search.suggest.SuggestBuilders; +import org.opensearch.search.suggest.SuggestionBuilder; +import org.opensearch.search.suggest.term.TermSuggestion; import java.io.IOException; import java.util.ArrayList; diff --git a/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats/MatrixStatsAggregator.java b/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats/MatrixStatsAggregator.java index e16d1ab2307..12e096c8a3e 100644 --- a/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats/MatrixStatsAggregator.java +++ b/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats/MatrixStatsAggregator.java @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.metrics.MetricsAggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.aggregations.support.ArrayValuesSource; import java.io.IOException; diff --git a/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java b/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java index a41baa2f90f..f777b0a73ce 100644 --- a/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java +++ b/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.opensearch.search.aggregations.support.ArrayValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.HashMap; diff --git a/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/support/ArrayValuesSourceAggregatorFactory.java b/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/support/ArrayValuesSourceAggregatorFactory.java index c2948df9a8a..2767c86a37b 100644 --- a/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/support/ArrayValuesSourceAggregatorFactory.java +++ b/modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/support/ArrayValuesSourceAggregatorFactory.java @@ -26,7 +26,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactory; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.HashMap; diff --git a/modules/analysis-common/src/test/java/org/opensearch/analysis/common/HighlighterWithAnalyzersTests.java b/modules/analysis-common/src/test/java/org/opensearch/analysis/common/HighlighterWithAnalyzersTests.java index b0adcfe3553..3cb1c7f9807 100644 --- a/modules/analysis-common/src/test/java/org/opensearch/analysis/common/HighlighterWithAnalyzersTests.java +++ b/modules/analysis-common/src/test/java/org/opensearch/analysis/common/HighlighterWithAnalyzersTests.java @@ -27,7 +27,7 @@ import org.elasticsearch.index.IndexSettings; import org.elasticsearch.index.query.Operator; import org.elasticsearch.plugins.Plugin; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; import org.elasticsearch.test.ESIntegTestCase; import java.io.IOException; diff --git a/modules/lang-mustache/src/main/java/org/opensearch/script/mustache/TransportSearchTemplateAction.java b/modules/lang-mustache/src/main/java/org/opensearch/script/mustache/TransportSearchTemplateAction.java index 36d6bad9a91..fc7441e6141 100644 --- a/modules/lang-mustache/src/main/java/org/opensearch/script/mustache/TransportSearchTemplateAction.java +++ b/modules/lang-mustache/src/main/java/org/opensearch/script/mustache/TransportSearchTemplateAction.java @@ -38,7 +38,7 @@ import org.opensearch.script.ScriptService; import org.opensearch.script.ScriptType; import org.opensearch.script.TemplateScript; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.tasks.Task; import org.opensearch.transport.TransportService; diff --git a/modules/lang-mustache/src/test/java/org/opensearch/script/mustache/MultiSearchTemplateResponseTests.java b/modules/lang-mustache/src/test/java/org/opensearch/script/mustache/MultiSearchTemplateResponseTests.java index c8bd97559cb..5face0480ac 100644 --- a/modules/lang-mustache/src/test/java/org/opensearch/script/mustache/MultiSearchTemplateResponseTests.java +++ b/modules/lang-mustache/src/test/java/org/opensearch/script/mustache/MultiSearchTemplateResponseTests.java @@ -24,7 +24,7 @@ import org.elasticsearch.action.search.ShardSearchFailure; import org.opensearch.common.Strings; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.InternalSearchResponse; import org.elasticsearch.test.AbstractXContentTestCase; import java.io.IOException; diff --git a/modules/lang-mustache/src/test/java/org/opensearch/script/mustache/SearchTemplateResponseTests.java b/modules/lang-mustache/src/test/java/org/opensearch/script/mustache/SearchTemplateResponseTests.java index d32e99a7038..6eddd38a840 100644 --- a/modules/lang-mustache/src/test/java/org/opensearch/script/mustache/SearchTemplateResponseTests.java +++ b/modules/lang-mustache/src/test/java/org/opensearch/script/mustache/SearchTemplateResponseTests.java @@ -31,7 +31,7 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHits; -import org.elasticsearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.InternalSearchResponse; import org.elasticsearch.test.AbstractXContentTestCase; import java.io.IOException; diff --git a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/ChildQuerySearchIT.java b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/ChildQuerySearchIT.java index db3704ddf49..41b9bd67fc0 100644 --- a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/ChildQuerySearchIT.java +++ b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/ChildQuerySearchIT.java @@ -43,9 +43,9 @@ import org.elasticsearch.search.aggregations.AggregationBuilders; import org.elasticsearch.search.aggregations.bucket.filter.Filter; import org.elasticsearch.search.aggregations.bucket.global.Global; import org.elasticsearch.search.aggregations.bucket.terms.Terms; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder.Field; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightField; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder.Field; +import org.opensearch.search.fetch.subphase.highlight.HighlightField; import org.opensearch.search.sort.SortBuilders; import org.opensearch.search.sort.SortOrder; import org.hamcrest.Matchers; diff --git a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/InnerHitsIT.java b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/InnerHitsIT.java index b564176a457..6d35de6df0d 100644 --- a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/InnerHitsIT.java +++ b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/InnerHitsIT.java @@ -35,7 +35,7 @@ import org.opensearch.script.Script; import org.opensearch.script.ScriptType; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHits; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; import org.opensearch.search.sort.FieldSortBuilder; import org.opensearch.search.sort.SortBuilders; import org.opensearch.search.sort.SortOrder; diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenAggregatorFactory.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenAggregatorFactory.java index 23fd40688f4..ad4a4233b70 100644 --- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenAggregatorFactory.java +++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenAggregatorFactory.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenToParentAggregator.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenToParentAggregator.java index 6ff07793a59..57c0122fb5e 100644 --- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenToParentAggregator.java +++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenToParentAggregator.java @@ -26,7 +26,7 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentAggregatorFactory.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentAggregatorFactory.java index 071beac9ada..dc0f329c2e6 100644 --- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentAggregatorFactory.java +++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentAggregatorFactory.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentJoinAggregator.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentJoinAggregator.java index c078ebe7634..732528e08d6 100644 --- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentJoinAggregator.java +++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentJoinAggregator.java @@ -41,7 +41,7 @@ import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator; import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentToChildrenAggregator.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentToChildrenAggregator.java index 8f9ed68efe0..1d93d2c2b72 100644 --- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentToChildrenAggregator.java +++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentToChildrenAggregator.java @@ -25,7 +25,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/modules/parent-join/src/main/java/org/opensearch/join/query/ParentChildInnerHitContextBuilder.java b/modules/parent-join/src/main/java/org/opensearch/join/query/ParentChildInnerHitContextBuilder.java index cf6efab2a18..9bd7bf32f35 100644 --- a/modules/parent-join/src/main/java/org/opensearch/join/query/ParentChildInnerHitContextBuilder.java +++ b/modules/parent-join/src/main/java/org/opensearch/join/query/ParentChildInnerHitContextBuilder.java @@ -46,14 +46,14 @@ import org.elasticsearch.index.query.QueryShardContext; import org.opensearch.join.mapper.ParentIdFieldMapper; import org.opensearch.join.mapper.ParentJoinFieldMapper; import org.elasticsearch.search.SearchHit; -import org.elasticsearch.search.fetch.subphase.InnerHitsContext; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.fetch.subphase.InnerHitsContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.List; import java.util.Map; -import static org.elasticsearch.search.fetch.subphase.InnerHitsContext.intersect; +import static org.opensearch.search.fetch.subphase.InnerHitsContext.intersect; class ParentChildInnerHitContextBuilder extends InnerHitContextBuilder { private final String typeName; diff --git a/modules/percolator/src/internalClusterTest/java/org/opensearch/percolator/PercolatorQuerySearchIT.java b/modules/percolator/src/internalClusterTest/java/org/opensearch/percolator/PercolatorQuerySearchIT.java index 137695e7e6f..51a7c00a01c 100644 --- a/modules/percolator/src/internalClusterTest/java/org/opensearch/percolator/PercolatorQuerySearchIT.java +++ b/modules/percolator/src/internalClusterTest/java/org/opensearch/percolator/PercolatorQuerySearchIT.java @@ -38,7 +38,7 @@ import org.elasticsearch.index.query.MultiMatchQueryBuilder; import org.elasticsearch.index.query.Operator; import org.elasticsearch.index.query.QueryBuilders; import org.elasticsearch.plugins.Plugin; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; import org.opensearch.search.sort.SortOrder; import org.elasticsearch.test.ESIntegTestCase; import java.io.IOException; diff --git a/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorHighlightSubFetchPhase.java b/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorHighlightSubFetchPhase.java index 46cec6ab551..d77babb7a35 100644 --- a/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorHighlightSubFetchPhase.java +++ b/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorHighlightSubFetchPhase.java @@ -27,13 +27,13 @@ import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.document.DocumentField; import org.elasticsearch.common.text.Text; import org.elasticsearch.search.SearchHit; -import org.elasticsearch.search.fetch.FetchContext; -import org.elasticsearch.search.fetch.FetchSubPhase; -import org.elasticsearch.search.fetch.FetchSubPhaseProcessor; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightField; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase; -import org.elasticsearch.search.fetch.subphase.highlight.Highlighter; -import org.elasticsearch.search.fetch.subphase.highlight.SearchHighlightContext; +import org.opensearch.search.fetch.FetchContext; +import org.opensearch.search.fetch.FetchSubPhase; +import org.opensearch.search.fetch.FetchSubPhaseProcessor; +import org.opensearch.search.fetch.subphase.highlight.HighlightField; +import org.opensearch.search.fetch.subphase.highlight.HighlightPhase; +import org.opensearch.search.fetch.subphase.highlight.Highlighter; +import org.opensearch.search.fetch.subphase.highlight.SearchHighlightContext; import org.opensearch.search.lookup.SourceLookup; import java.io.IOException; diff --git a/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorMatchedSlotSubFetchPhase.java b/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorMatchedSlotSubFetchPhase.java index ff6395cbcf6..cf5180a4c97 100644 --- a/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorMatchedSlotSubFetchPhase.java +++ b/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorMatchedSlotSubFetchPhase.java @@ -34,9 +34,9 @@ import org.apache.lucene.util.BitSetIterator; import org.opensearch.Version; import org.elasticsearch.common.document.DocumentField; import org.elasticsearch.common.lucene.search.Queries; -import org.elasticsearch.search.fetch.FetchContext; -import org.elasticsearch.search.fetch.FetchSubPhase; -import org.elasticsearch.search.fetch.FetchSubPhaseProcessor; +import org.opensearch.search.fetch.FetchContext; +import org.opensearch.search.fetch.FetchSubPhase; +import org.opensearch.search.fetch.FetchSubPhaseProcessor; import java.io.IOException; import java.util.ArrayList; diff --git a/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorPlugin.java b/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorPlugin.java index 21df711f608..bfc13aea7f1 100644 --- a/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorPlugin.java +++ b/modules/percolator/src/main/java/org/opensearch/percolator/PercolatorPlugin.java @@ -24,7 +24,7 @@ import org.elasticsearch.index.mapper.Mapper; import org.elasticsearch.plugins.MapperPlugin; import org.elasticsearch.plugins.Plugin; import org.elasticsearch.plugins.SearchPlugin; -import org.elasticsearch.search.fetch.FetchSubPhase; +import org.opensearch.search.fetch.FetchSubPhase; import java.util.Arrays; import java.util.List; diff --git a/modules/percolator/src/test/java/org/opensearch/percolator/PercolatorHighlightSubFetchPhaseTests.java b/modules/percolator/src/test/java/org/opensearch/percolator/PercolatorHighlightSubFetchPhaseTests.java index 88008383201..6011527469a 100644 --- a/modules/percolator/src/test/java/org/opensearch/percolator/PercolatorHighlightSubFetchPhaseTests.java +++ b/modules/percolator/src/test/java/org/opensearch/percolator/PercolatorHighlightSubFetchPhaseTests.java @@ -28,8 +28,8 @@ import org.apache.lucene.search.MatchAllDocsQuery; import org.opensearch.common.bytes.BytesArray; import org.elasticsearch.common.lucene.search.function.FunctionScoreQuery; import org.elasticsearch.common.lucene.search.function.RandomScoreFunction; -import org.elasticsearch.search.fetch.FetchContext; -import org.elasticsearch.search.fetch.subphase.highlight.SearchHighlightContext; +import org.opensearch.search.fetch.FetchContext; +import org.opensearch.search.fetch.subphase.highlight.SearchHighlightContext; import org.elasticsearch.test.ESTestCase; import org.mockito.Mockito; diff --git a/modules/percolator/src/test/java/org/opensearch/percolator/PercolatorMatchedSlotSubFetchPhaseTests.java b/modules/percolator/src/test/java/org/opensearch/percolator/PercolatorMatchedSlotSubFetchPhaseTests.java index 4b5c8723f96..1e8abf71925 100644 --- a/modules/percolator/src/test/java/org/opensearch/percolator/PercolatorMatchedSlotSubFetchPhaseTests.java +++ b/modules/percolator/src/test/java/org/opensearch/percolator/PercolatorMatchedSlotSubFetchPhaseTests.java @@ -36,9 +36,9 @@ import org.apache.lucene.store.Directory; import org.apache.lucene.util.FixedBitSet; import org.elasticsearch.index.mapper.SeqNoFieldMapper; import org.elasticsearch.search.SearchHit; -import org.elasticsearch.search.fetch.FetchContext; -import org.elasticsearch.search.fetch.FetchSubPhase.HitContext; -import org.elasticsearch.search.fetch.FetchSubPhaseProcessor; +import org.opensearch.search.fetch.FetchContext; +import org.opensearch.search.fetch.FetchSubPhase.HitContext; +import org.opensearch.search.fetch.FetchSubPhaseProcessor; import org.opensearch.search.lookup.SourceLookup; import org.elasticsearch.test.ESTestCase; diff --git a/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedRequestsTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedRequestsTests.java index 5ea32eaa7a7..d35f8abc3b4 100644 --- a/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedRequestsTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedRequestsTests.java @@ -35,9 +35,9 @@ import org.elasticsearch.index.query.QueryBuilder; import org.elasticsearch.search.SearchModule; import org.elasticsearch.search.aggregations.AggregationBuilders; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; -import org.elasticsearch.search.suggest.SuggestBuilder; -import org.elasticsearch.search.suggest.SuggestBuilders; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.suggest.SuggestBuilder; +import org.opensearch.search.suggest.SuggestBuilders; import org.elasticsearch.test.ESTestCase; import org.junit.AfterClass; import org.junit.BeforeClass; diff --git a/modules/reindex/src/test/java/org/opensearch/index/reindex/AsyncBulkByScrollActionTests.java b/modules/reindex/src/test/java/org/opensearch/index/reindex/AsyncBulkByScrollActionTests.java index 178d47c75ee..ea425d997ea 100644 --- a/modules/reindex/src/test/java/org/opensearch/index/reindex/AsyncBulkByScrollActionTests.java +++ b/modules/reindex/src/test/java/org/opensearch/index/reindex/AsyncBulkByScrollActionTests.java @@ -79,7 +79,7 @@ import org.elasticsearch.index.shard.ShardId; import org.opensearch.rest.RestStatus; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHits; -import org.elasticsearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.InternalSearchResponse; import org.opensearch.tasks.Task; import org.opensearch.tasks.TaskId; import org.opensearch.tasks.TaskManager; diff --git a/modules/reindex/src/test/java/org/opensearch/index/reindex/ClientScrollableHitSourceTests.java b/modules/reindex/src/test/java/org/opensearch/index/reindex/ClientScrollableHitSourceTests.java index 72868a1d0e5..88c148b8289 100644 --- a/modules/reindex/src/test/java/org/opensearch/index/reindex/ClientScrollableHitSourceTests.java +++ b/modules/reindex/src/test/java/org/opensearch/index/reindex/ClientScrollableHitSourceTests.java @@ -41,7 +41,7 @@ import org.elasticsearch.index.reindex.ClientScrollableHitSource; import org.elasticsearch.index.reindex.ScrollableHitSource; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHits; -import org.elasticsearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.InternalSearchResponse; import org.opensearch.tasks.TaskId; import org.elasticsearch.test.ESTestCase; import org.opensearch.threadpool.TestThreadPool; diff --git a/server/src/main/java/org/elasticsearch/action/explain/ExplainRequest.java b/server/src/main/java/org/elasticsearch/action/explain/ExplainRequest.java index 611e6da1ee0..1fea425bee7 100644 --- a/server/src/main/java/org/elasticsearch/action/explain/ExplainRequest.java +++ b/server/src/main/java/org/elasticsearch/action/explain/ExplainRequest.java @@ -30,8 +30,8 @@ import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.index.query.QueryBuilder; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.internal.AliasFilter; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.internal.AliasFilter; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/action/explain/ExplainRequestBuilder.java b/server/src/main/java/org/elasticsearch/action/explain/ExplainRequestBuilder.java index 041b9cbd5e5..8feab4a491e 100644 --- a/server/src/main/java/org/elasticsearch/action/explain/ExplainRequestBuilder.java +++ b/server/src/main/java/org/elasticsearch/action/explain/ExplainRequestBuilder.java @@ -24,7 +24,7 @@ import org.opensearch.client.OpenSearchClient; import org.elasticsearch.common.Nullable; import org.opensearch.common.Strings; import org.opensearch.index.query.QueryBuilder; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; /** * A builder for {@link ExplainRequest}. diff --git a/server/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java b/server/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java index 7eabaaa5ffb..a06efd8733a 100644 --- a/server/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java +++ b/server/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java @@ -43,9 +43,9 @@ import org.elasticsearch.index.mapper.Uid; import org.elasticsearch.index.shard.IndexShard; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.search.SearchService; -import org.elasticsearch.search.internal.AliasFilter; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.AliasFilter; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.search.rescore.RescoreContext; import org.opensearch.search.rescore.Rescorer; import org.opensearch.tasks.Task; diff --git a/server/src/main/java/org/elasticsearch/action/fieldcaps/TransportFieldCapabilitiesIndexAction.java b/server/src/main/java/org/elasticsearch/action/fieldcaps/TransportFieldCapabilitiesIndexAction.java index de91ccb0ee2..f6777fd7ac5 100644 --- a/server/src/main/java/org/elasticsearch/action/fieldcaps/TransportFieldCapabilitiesIndexAction.java +++ b/server/src/main/java/org/elasticsearch/action/fieldcaps/TransportFieldCapabilitiesIndexAction.java @@ -51,8 +51,8 @@ import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.indices.IndicesService; import org.elasticsearch.search.SearchService; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.internal.AliasFilter; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.AliasFilter; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.tasks.Task; import org.opensearch.threadpool.ThreadPool; import org.opensearch.transport.TransportChannel; diff --git a/server/src/main/java/org/elasticsearch/action/get/GetRequest.java b/server/src/main/java/org/elasticsearch/action/get/GetRequest.java index de54fc5dc4a..f888f39f6dc 100644 --- a/server/src/main/java/org/elasticsearch/action/get/GetRequest.java +++ b/server/src/main/java/org/elasticsearch/action/get/GetRequest.java @@ -31,7 +31,7 @@ import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.lucene.uid.Versions; import org.elasticsearch.index.VersionType; import org.elasticsearch.index.mapper.MapperService; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/action/get/GetRequestBuilder.java b/server/src/main/java/org/elasticsearch/action/get/GetRequestBuilder.java index 9ca075a2b9a..346fd35ddca 100644 --- a/server/src/main/java/org/elasticsearch/action/get/GetRequestBuilder.java +++ b/server/src/main/java/org/elasticsearch/action/get/GetRequestBuilder.java @@ -24,7 +24,7 @@ import org.opensearch.client.OpenSearchClient; import org.elasticsearch.common.Nullable; import org.opensearch.common.Strings; import org.opensearch.index.VersionType; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; /** * A get document action request builder. diff --git a/server/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java b/server/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java index 25367353730..2483ab867df 100644 --- a/server/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java +++ b/server/src/main/java/org/elasticsearch/action/get/MultiGetRequest.java @@ -41,7 +41,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentParser.Token; import org.elasticsearch.index.VersionType; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/action/search/AbstractSearchAsyncAction.java b/server/src/main/java/org/elasticsearch/action/search/AbstractSearchAsyncAction.java index d98aed2aa66..d2b68e6c3ae 100644 --- a/server/src/main/java/org/elasticsearch/action/search/AbstractSearchAsyncAction.java +++ b/server/src/main/java/org/elasticsearch/action/search/AbstractSearchAsyncAction.java @@ -40,10 +40,10 @@ import org.elasticsearch.common.util.concurrent.AtomicArray; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.search.SearchPhaseResult; import org.elasticsearch.search.SearchShardTarget; -import org.elasticsearch.search.internal.AliasFilter; -import org.elasticsearch.search.internal.InternalSearchResponse; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.AliasFilter; +import org.opensearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.transport.Transport; import java.util.ArrayDeque; diff --git a/server/src/main/java/org/elasticsearch/action/search/CanMatchPreFilterSearchPhase.java b/server/src/main/java/org/elasticsearch/action/search/CanMatchPreFilterSearchPhase.java index 69423b2122c..722af3873f5 100644 --- a/server/src/main/java/org/elasticsearch/action/search/CanMatchPreFilterSearchPhase.java +++ b/server/src/main/java/org/elasticsearch/action/search/CanMatchPreFilterSearchPhase.java @@ -27,7 +27,7 @@ import org.elasticsearch.common.lease.Releasable; import org.elasticsearch.search.SearchService.CanMatchResponse; import org.elasticsearch.search.SearchShardTarget; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.internal.AliasFilter; +import org.opensearch.search.internal.AliasFilter; import org.opensearch.search.sort.FieldSortBuilder; import org.opensearch.search.sort.MinAndMax; import org.opensearch.search.sort.SortOrder; diff --git a/server/src/main/java/org/elasticsearch/action/search/DfsQueryPhase.java b/server/src/main/java/org/elasticsearch/action/search/DfsQueryPhase.java index 51d887093dd..7f74040e61f 100644 --- a/server/src/main/java/org/elasticsearch/action/search/DfsQueryPhase.java +++ b/server/src/main/java/org/elasticsearch/action/search/DfsQueryPhase.java @@ -23,8 +23,8 @@ import org.elasticsearch.search.SearchPhaseResult; import org.elasticsearch.search.SearchShardTarget; import org.opensearch.search.dfs.AggregatedDfs; import org.opensearch.search.dfs.DfsSearchResult; -import org.elasticsearch.search.query.QuerySearchRequest; -import org.elasticsearch.search.query.QuerySearchResult; +import org.opensearch.search.query.QuerySearchRequest; +import org.opensearch.search.query.QuerySearchResult; import org.opensearch.transport.Transport; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/action/search/ExpandSearchPhase.java b/server/src/main/java/org/elasticsearch/action/search/ExpandSearchPhase.java index 0d45deb05e9..3e9e1565ab7 100644 --- a/server/src/main/java/org/elasticsearch/action/search/ExpandSearchPhase.java +++ b/server/src/main/java/org/elasticsearch/action/search/ExpandSearchPhase.java @@ -30,7 +30,7 @@ import org.elasticsearch.search.SearchHits; import org.elasticsearch.search.SearchPhaseResult; import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.collapse.CollapseBuilder; -import org.elasticsearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.InternalSearchResponse; import java.util.HashMap; import java.util.Iterator; diff --git a/server/src/main/java/org/elasticsearch/action/search/FetchSearchPhase.java b/server/src/main/java/org/elasticsearch/action/search/FetchSearchPhase.java index 60ff45b8820..d03af427c79 100644 --- a/server/src/main/java/org/elasticsearch/action/search/FetchSearchPhase.java +++ b/server/src/main/java/org/elasticsearch/action/search/FetchSearchPhase.java @@ -29,12 +29,12 @@ import org.elasticsearch.search.RescoreDocIds; import org.elasticsearch.search.SearchPhaseResult; import org.elasticsearch.search.SearchShardTarget; import org.opensearch.search.dfs.AggregatedDfs; -import org.elasticsearch.search.fetch.FetchSearchResult; -import org.elasticsearch.search.fetch.ShardFetchSearchRequest; -import org.elasticsearch.search.internal.InternalSearchResponse; -import org.elasticsearch.search.internal.ShardSearchContextId; -import org.elasticsearch.search.internal.ShardSearchRequest; -import org.elasticsearch.search.query.QuerySearchResult; +import org.opensearch.search.fetch.FetchSearchResult; +import org.opensearch.search.fetch.ShardFetchSearchRequest; +import org.opensearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchRequest; +import org.opensearch.search.query.QuerySearchResult; import org.opensearch.transport.Transport; import java.util.List; diff --git a/server/src/main/java/org/elasticsearch/action/search/QueryPhaseResultConsumer.java b/server/src/main/java/org/elasticsearch/action/search/QueryPhaseResultConsumer.java index 1afd51b8df4..32be7372091 100644 --- a/server/src/main/java/org/elasticsearch/action/search/QueryPhaseResultConsumer.java +++ b/server/src/main/java/org/elasticsearch/action/search/QueryPhaseResultConsumer.java @@ -35,7 +35,7 @@ import org.elasticsearch.search.SearchShardTarget; import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContextBuilder; import org.elasticsearch.search.aggregations.InternalAggregations; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.query.QuerySearchResult; +import org.opensearch.search.query.QuerySearchResult; import java.util.ArrayDeque; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchContextId.java b/server/src/main/java/org/elasticsearch/action/search/SearchContextId.java index b4f7779e6fe..f4eee226f83 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchContextId.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchContextId.java @@ -31,7 +31,7 @@ import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.search.SearchPhaseResult; import org.elasticsearch.search.SearchShardTarget; -import org.elasticsearch.search.internal.AliasFilter; +import org.opensearch.search.internal.AliasFilter; import org.opensearch.transport.RemoteClusterAware; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchContextIdForNode.java b/server/src/main/java/org/elasticsearch/action/search/SearchContextIdForNode.java index e5804e92082..6b934b9094a 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchContextIdForNode.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchContextIdForNode.java @@ -23,7 +23,7 @@ import org.elasticsearch.common.Nullable; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.io.stream.Writeable; -import org.elasticsearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchContextId; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchDfsQueryThenFetchAsyncAction.java b/server/src/main/java/org/elasticsearch/action/search/SearchDfsQueryThenFetchAsyncAction.java index b7e12b7e12c..61b3b9c3f8b 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchDfsQueryThenFetchAsyncAction.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchDfsQueryThenFetchAsyncAction.java @@ -27,7 +27,7 @@ import org.elasticsearch.search.SearchShardTarget; import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.dfs.AggregatedDfs; import org.opensearch.search.dfs.DfsSearchResult; -import org.elasticsearch.search.internal.AliasFilter; +import org.opensearch.search.internal.AliasFilter; import org.opensearch.transport.Transport; import java.util.List; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchExecutionStatsCollector.java b/server/src/main/java/org/elasticsearch/action/search/SearchExecutionStatsCollector.java index 292686cd9e6..1817f1a2206 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchExecutionStatsCollector.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchExecutionStatsCollector.java @@ -22,7 +22,7 @@ package org.elasticsearch.action.search; import org.opensearch.action.ActionListener; import org.elasticsearch.node.ResponseCollectorService; import org.elasticsearch.search.SearchPhaseResult; -import org.elasticsearch.search.query.QuerySearchResult; +import org.opensearch.search.query.QuerySearchResult; import org.opensearch.transport.Transport; import java.util.Objects; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchPhaseContext.java b/server/src/main/java/org/elasticsearch/action/search/SearchPhaseContext.java index e3c03eab73a..f4978c740c5 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchPhaseContext.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchPhaseContext.java @@ -25,9 +25,9 @@ import org.elasticsearch.common.lease.Releasable; import org.elasticsearch.common.util.concurrent.AtomicArray; import org.elasticsearch.search.SearchPhaseResult; import org.elasticsearch.search.SearchShardTarget; -import org.elasticsearch.search.internal.InternalSearchResponse; -import org.elasticsearch.search.internal.ShardSearchContextId; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.transport.Transport; import java.util.concurrent.Executor; @@ -101,8 +101,8 @@ interface SearchPhaseContext extends Executor { /** * Releases a search context with the given context ID on the node the given connection is connected to. - * @see org.elasticsearch.search.query.QuerySearchResult#getContextId() - * @see org.elasticsearch.search.fetch.FetchSearchResult#getContextId() + * @see org.opensearch.search.query.QuerySearchResult#getContextId() + * @see org.opensearch.search.fetch.FetchSearchResult#getContextId() * */ default void sendReleaseSearchContext(ShardSearchContextId contextId, diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchPhaseController.java b/server/src/main/java/org/elasticsearch/action/search/SearchPhaseController.java index 403d968b7ee..00f3daf52f7 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchPhaseController.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchPhaseController.java @@ -49,15 +49,15 @@ import org.elasticsearch.search.aggregations.InternalAggregations; import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.dfs.AggregatedDfs; import org.opensearch.search.dfs.DfsSearchResult; -import org.elasticsearch.search.fetch.FetchSearchResult; -import org.elasticsearch.search.internal.InternalSearchResponse; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.profile.ProfileShardResult; -import org.elasticsearch.search.profile.SearchProfileShardResults; -import org.elasticsearch.search.query.QuerySearchResult; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.Suggest.Suggestion; -import org.elasticsearch.search.suggest.completion.CompletionSuggestion; +import org.opensearch.search.fetch.FetchSearchResult; +import org.opensearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.profile.ProfileShardResult; +import org.opensearch.search.profile.SearchProfileShardResults; +import org.opensearch.search.query.QuerySearchResult; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.completion.CompletionSuggestion; import java.util.ArrayList; import java.util.Collection; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncAction.java b/server/src/main/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncAction.java index 557ea9809b4..490ab818931 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncAction.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncAction.java @@ -26,10 +26,10 @@ import org.opensearch.cluster.ClusterState; import org.opensearch.cluster.routing.GroupShardsIterator; import org.elasticsearch.search.SearchPhaseResult; import org.elasticsearch.search.SearchShardTarget; -import org.elasticsearch.search.internal.AliasFilter; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.internal.ShardSearchRequest; -import org.elasticsearch.search.query.QuerySearchResult; +import org.opensearch.search.internal.AliasFilter; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.internal.ShardSearchRequest; +import org.opensearch.search.query.QuerySearchResult; import org.opensearch.transport.Transport; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchRequest.java b/server/src/main/java/org/elasticsearch/action/search/SearchRequest.java index b572d65c83c..c8723e6e84a 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchRequest.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchRequest.java @@ -33,7 +33,7 @@ import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.search.Scroll; import org.opensearch.search.builder.PointInTimeBuilder; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.tasks.TaskId; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchRequestBuilder.java b/server/src/main/java/org/elasticsearch/action/search/SearchRequestBuilder.java index d2432e8c7bc..529282911b2 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchRequestBuilder.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchRequestBuilder.java @@ -32,12 +32,12 @@ import org.elasticsearch.search.aggregations.PipelineAggregationBuilder; import org.opensearch.search.builder.PointInTimeBuilder; import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.collapse.CollapseBuilder; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; import org.opensearch.search.rescore.RescorerBuilder; import org.opensearch.search.slice.SliceBuilder; import org.opensearch.search.sort.SortBuilder; import org.opensearch.search.sort.SortOrder; -import org.elasticsearch.search.suggest.SuggestBuilder; +import org.opensearch.search.suggest.SuggestBuilder; import java.util.Arrays; import java.util.List; @@ -555,7 +555,7 @@ public class SearchRequestBuilder extends ActionRequestBuilder new InternalFilters(name, buckets, keyed, metadata())); + }, buckets -> new InternalFilters(name, buckets, keyed, metadata())); } @Override diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java index de063b55a1e..2c05738d49e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java @@ -30,7 +30,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.AggregatorFactory; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.List; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java index 6eed1c1c962..553efc75024 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java index a4b283f0082..8eb0e4fab9c 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java @@ -22,7 +22,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java index cd8f4abb95d..460b54fd83d 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java @@ -33,7 +33,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java index e5a50da8d49..20034f367c6 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java @@ -23,7 +23,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java index 31c304528ba..803a6fbd748 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregator.java index ad8a40b393a..057a78fe599 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregator.java @@ -26,7 +26,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java index 39c732deee8..116d9b460ed 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java @@ -25,7 +25,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.AggregatorFactory; import org.elasticsearch.search.aggregations.CardinalityUpperBound; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java index f594fd20f98..4fc02329580 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java @@ -30,7 +30,7 @@ import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram.EmptyBucketInfo; import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java index f10605dd89a..1b655ab77fe 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java @@ -43,7 +43,7 @@ import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramA import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java index a17a4ecf9f4..4dca5d67933 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java @@ -30,7 +30,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java index 6c96728781d..5a29cfb252b 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java @@ -25,7 +25,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java index 891e7722f46..ab77844fd79 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java @@ -26,7 +26,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.BucketOrder; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java index 3abd58f6415..0ebef2dbc16 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java @@ -37,7 +37,7 @@ import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java index ac2af7669eb..6e2fb943e5d 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java index 73c8075a3d7..848f7c096a5 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java @@ -40,7 +40,7 @@ import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java index 5c9bab3be2f..9e933f66a7d 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java @@ -30,7 +30,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java index e01d52d268c..cf2a98fcab5 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java @@ -23,7 +23,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.BucketOrder; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java index bdf734925d9..371adf5c9ae 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java @@ -30,7 +30,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java index 006af5b99c7..9ca9e34fbb0 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.List; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java index 0779972ce46..ccaadc97c52 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java @@ -43,7 +43,7 @@ import org.elasticsearch.search.aggregations.bucket.MergingBucketsDeferringColle import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java index c7add139dcb..2a786fde585 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java index 39c1bc1e2b6..05be6fc2a65 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java @@ -23,7 +23,7 @@ import org.elasticsearch.common.Nullable; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregator.java index 8e66d819ee0..c1bfa185d77 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregator.java @@ -30,7 +30,7 @@ import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java index c2bf968f837..ec448a62e22 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java index a6f73f22e97..534cf56e54e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java @@ -23,7 +23,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregator.java index 6abc77b048b..61dc680fe4e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregator.java @@ -43,7 +43,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java index ae784179dcd..0dd5e8a3dc4 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java @@ -27,7 +27,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactory; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.NonCollectingAggregator; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java index 5ede2374953..add205abc9d 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java @@ -36,7 +36,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java index ad22c05c7be..24e684c7d9f 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java @@ -27,7 +27,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactory; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.NonCollectingAggregator; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java index ca189819a48..8544006f8e3 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource.Numeric; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregator.java index 0382ad76f42..bd5f4722b50 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java index fd329a592c4..7582b7da21e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java @@ -27,7 +27,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.List; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java index b2eba98198e..ce02e561796 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java @@ -26,7 +26,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java index d61ed62f1e0..ba5f596ac61 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java @@ -39,7 +39,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java index 3436bd0bb0c..200b2a705f9 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java @@ -24,7 +24,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.List; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java index 82005aaaf40..7f5c96aa0a7 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java @@ -42,7 +42,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.NonCollectingAggregator; import org.elasticsearch.search.aggregations.bucket.BucketsAggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.ArrayList; @@ -75,7 +75,7 @@ public class RangeAggregator extends BucketsAggregator { * must call this know that consumers prefer * {@code from} and {@code to} parameters if they are non-null * and finite. Otherwise they parse from {@code fromrStr} and - * {@code toStr}. + * {@code toStr}. */ public Range(String key, Double from, String fromAsStr, Double to, String toAsStr) { this.key = key; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java index 4bbfd305010..9c9ddfd0aa1 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java @@ -23,7 +23,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java index 21dab702c24..b7930cb8a0a 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java index 6a44f2b0bb9..083a8f80d1f 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java @@ -22,7 +22,7 @@ package org.elasticsearch.search.aggregations.bucket.sampler; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java index ab899c1beb0..bd06074c603 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java @@ -33,7 +33,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java index 49babe8b5f9..2ddf162ee49 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java @@ -35,7 +35,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java index faafcf79ca2..744abebc643 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java index d791743cd39..2ae6d3b0098 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java @@ -33,7 +33,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregator.java index 53566f9d828..08ef71632f5 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregator.java @@ -34,7 +34,7 @@ import org.elasticsearch.search.aggregations.bucket.DeferableBucketAggregator; import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector; import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java index 41a465dcdc1..f811cb588c7 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java @@ -24,7 +24,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.AggregatorFactory; import org.elasticsearch.search.aggregations.CardinalityUpperBound; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java index 6f8c5610b82..e62e1b11af6 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.bucket.DeferableBucketAggregator; import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector; import org.elasticsearch.search.aggregations.bucket.MergingBucketsDeferringCollector; import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregator; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java index 54884ae71bd..4378d71f45e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java @@ -25,8 +25,8 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.BucketOrder; import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic; -import org.elasticsearch.search.internal.ContextIndexSearcher; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java index 42c549f0ba8..7652c783f0e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java @@ -48,7 +48,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForBytes; import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java index e009fa5ef47..4b1dc8a16cf 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java index b7c9b7e4de6..3e7840ab0d0 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java @@ -40,7 +40,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForBytes; import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregator.java index e9e69be155c..828d4835fe4 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregator.java @@ -44,8 +44,8 @@ import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds.Bu import org.elasticsearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForLong; import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.ContextIndexSearcher; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java index 50aec3eb68c..755dab82286 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java @@ -34,7 +34,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java index 76af2a6ead1..21853992d59 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java @@ -23,7 +23,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java index ed73f17e2d6..0e4d9a88577 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java @@ -39,7 +39,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java index 30cddb47038..4a11c66018e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java @@ -24,7 +24,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java index 703727dea7b..730be21a0bb 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java @@ -47,7 +47,7 @@ import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude.StringF import org.elasticsearch.search.aggregations.bucket.terms.MapStringTermsAggregator.CollectConsumer; import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds; import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.lookup.SourceLookup; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java index 01463a02678..5a4a9f73bd4 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java @@ -33,7 +33,7 @@ import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregator.java index db35de25537..7905b9ff42a 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregator.java @@ -35,7 +35,7 @@ import org.elasticsearch.search.aggregations.InternalOrder.CompoundOrder; import org.elasticsearch.search.aggregations.bucket.DeferableBucketAggregator; import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregator; import org.elasticsearch.search.aggregations.support.AggregationPath; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Comparator; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java index 66a103c3d72..54336a2cf8e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java @@ -42,7 +42,7 @@ import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java index 8ea411653e8..9552900413e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java @@ -24,7 +24,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.BucketOrder; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractHDRPercentilesAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractHDRPercentilesAggregator.java index 50eb1a8d255..07d2fe679ff 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractHDRPercentilesAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractHDRPercentilesAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractTDigestPercentilesAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractTDigestPercentilesAggregator.java index 440ce92a139..cf86a0ce04c 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractTDigestPercentilesAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AbstractTDigestPercentilesAggregator.java @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AvgAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AvgAggregator.java index e0a49994832..541598bcba2 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AvgAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AvgAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AvgAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AvgAggregatorFactory.java index 862a8ce7b15..0ce6e5c3814 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AvgAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/AvgAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregator.java index cef220f360e..6366d8b2ba4 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregator.java @@ -43,7 +43,7 @@ import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregatorFactory.java index 3e25a8e9782..893efac8e38 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregatorSupplier.java index bf2be089519..be08b4e56b7 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/CardinalityAggregatorSupplier.java @@ -21,7 +21,7 @@ package org.elasticsearch.search.aggregations.metrics; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregator.java index 5519d8811be..e833317a9e4 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregator.java @@ -33,7 +33,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregatorFactory.java index 8d134749d20..b5c727a5fbe 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregatorProvider.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregatorProvider.java index 3f104a9706d..478cbeb743e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregatorProvider.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsAggregatorProvider.java @@ -20,7 +20,7 @@ package org.elasticsearch.search.aggregations.metrics; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregator.java index 9b40c579e17..fd5ab1bd295 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregatorFactory.java index f79eafbce57..92daf44932b 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregatorSupplier.java index b4daa240e72..681b1464b34 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsAggregatorSupplier.java @@ -21,7 +21,7 @@ package org.elasticsearch.search.aggregations.metrics; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoCentroidAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoCentroidAggregator.java index 025606b612d..4c2e005bc02 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoCentroidAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoCentroidAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoCentroidAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoCentroidAggregatorFactory.java index 96c0a817469..eb20b77018c 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoCentroidAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoCentroidAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoGridAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoGridAggregatorSupplier.java index 713ee6873b3..32e519af420 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoGridAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/GeoGridAggregatorSupplier.java @@ -25,7 +25,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/HDRPercentileRanksAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/HDRPercentileRanksAggregator.java index bbf1eec08b7..4d83bd14dda 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/HDRPercentileRanksAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/HDRPercentileRanksAggregator.java @@ -23,7 +23,7 @@ import org.elasticsearch.search.DocValueFormat; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/HDRPercentilesAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/HDRPercentilesAggregator.java index 490d0c0bc65..8452e32ff3b 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/HDRPercentilesAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/HDRPercentilesAggregator.java @@ -23,7 +23,7 @@ import org.elasticsearch.search.DocValueFormat; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MaxAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MaxAggregator.java index 0e454db0d65..e7e9e861c65 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MaxAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MaxAggregator.java @@ -38,7 +38,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MaxAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MaxAggregatorFactory.java index 252e650cc5e..e0ccc781027 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MaxAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MaxAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregator.java index d3a6ba2355f..46aea13749a 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregatorFactory.java index a89d7bb4556..35cce2aa5a1 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregatorSupplier.java index 8097c1bbd31..84fe3ab7417 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MedianAbsoluteDeviationAggregatorSupplier.java @@ -21,7 +21,7 @@ package org.elasticsearch.search.aggregations.metrics; import org.elasticsearch.search.DocValueFormat; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MetricAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MetricAggregatorSupplier.java index cc26b390736..6a7fa5c0dfa 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MetricAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MetricAggregatorSupplier.java @@ -20,7 +20,7 @@ package org.elasticsearch.search.aggregations.metrics; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MetricsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MetricsAggregator.java index c704f0e1c77..e1e0629cc22 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MetricsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MetricsAggregator.java @@ -24,7 +24,7 @@ import org.elasticsearch.search.aggregations.AggregatorBase; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.CardinalityUpperBound; import org.elasticsearch.search.aggregations.InternalAggregation; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; @@ -40,7 +40,7 @@ public abstract class MetricsAggregator extends AggregatorBase { /** * Build an aggregation for data that has been collected into - * {@code owningBucketOrd}. + * {@code owningBucketOrd}. */ public abstract InternalAggregation buildAggregation(long owningBucketOrd) throws IOException; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MinAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MinAggregator.java index 1fa12e97198..b7e8ffd06de 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MinAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MinAggregator.java @@ -37,7 +37,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MinAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MinAggregatorFactory.java index 31513743ab2..82528bed264 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MinAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/MinAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/NumericMetricsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/NumericMetricsAggregator.java index 7865cb73c1f..5673a8df572 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/NumericMetricsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/NumericMetricsAggregator.java @@ -20,7 +20,7 @@ package org.elasticsearch.search.aggregations.metrics; import org.elasticsearch.common.util.Comparators; import org.elasticsearch.search.aggregations.Aggregator; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.sort.SortOrder; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentileRanksAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentileRanksAggregatorFactory.java index d89f9fd621b..a7cbc1a8e2f 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentileRanksAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentileRanksAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesAggregatorFactory.java index 7bb95709e70..9b5af319798 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesAggregatorSupplier.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesAggregatorSupplier.java index 28b4b48a3b9..eb205e6e291 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesAggregatorSupplier.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesAggregatorSupplier.java @@ -21,7 +21,7 @@ package org.elasticsearch.search.aggregations.metrics; import org.elasticsearch.search.DocValueFormat; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesConfig.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesConfig.java index b59ee9933d0..e3c3dece319 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesConfig.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/PercentilesConfig.java @@ -27,7 +27,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.search.DocValueFormat; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregator.java index 7dfdf69d6cc..8ec66068766 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregator.java @@ -34,7 +34,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.lookup.SearchLookup; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregatorFactory.java index e77608594cd..c149fbb0179 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.AggregatorFactory; import org.elasticsearch.search.aggregations.CardinalityUpperBound; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.lookup.SearchLookup; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/StatsAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/StatsAggregator.java index 06cab8ae5ef..22551127d5c 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/StatsAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/StatsAggregator.java @@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/StatsAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/StatsAggregatorFactory.java index 96a6136297b..cb72af2d7aa 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/StatsAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/StatsAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/SumAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/SumAggregator.java index aebff3fbeff..2dc38116615 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/SumAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/SumAggregator.java @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollectorBase; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/SumAggregatorFactory.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/SumAggregatorFactory.java index 9137ec52d4c..da01c45909e 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/SumAggregatorFactory.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/SumAggregatorFactory.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TDigestPercentileRanksAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TDigestPercentileRanksAggregator.java index 5446726bd0b..cf4d76df0eb 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TDigestPercentileRanksAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TDigestPercentileRanksAggregator.java @@ -22,7 +22,7 @@ import org.elasticsearch.search.DocValueFormat; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TDigestPercentilesAggregator.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TDigestPercentilesAggregator.java index 17cef9ef206..57cb9e7bb27 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TDigestPercentilesAggregator.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TDigestPercentilesAggregator.java @@ -22,7 +22,7 @@ import org.elasticsearch.search.DocValueFormat; import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.support.ValuesSource; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TopHitsAggregationBuilder.java b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TopHitsAggregationBuilder.java index 0a939851123..6e1e97c6110 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TopHitsAggregationBuilder.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/metrics/TopHitsAggregationBuilder.java @@ -38,11 +38,11 @@ import org.elasticsearch.search.aggregations.AggregatorFactories.Builder; import org.elasticsearch.search.aggregations.AggregatorFactory; import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.builder.SearchSourceBuilder.ScriptField; -import org.elasticsearch.search.fetch.StoredFieldsContext; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.fetch.subphase.FieldAndFormat; -import org.elasticsearch.search.fetch.subphase.ScriptFieldsContext; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.fetch.StoredFieldsContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FieldAndFormat; +import org.opensearch.search.fetch.subphase.ScriptFieldsContext; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; import org.opensearch.search.sort.ScoreSortBuilder; import org.opensearch.search.sort.SortAndFormats; import org.opensearch.search.sort.SortBuilder; @@ -633,7 +633,7 @@ public class TopHitsAggregationBuilder extends AbstractAggregationBuilder, E> { return profileTree.getTree(); } -} \ No newline at end of file +} diff --git a/server/src/main/java/org/elasticsearch/search/profile/ProfileResult.java b/server/src/main/java/org/opensearch/search/profile/ProfileResult.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/profile/ProfileResult.java rename to server/src/main/java/org/opensearch/search/profile/ProfileResult.java index c0dbf567c1a..822158ee349 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/ProfileResult.java +++ b/server/src/main/java/org/opensearch/search/profile/ProfileResult.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile; +package org.opensearch.search.profile; import org.opensearch.Version; import org.elasticsearch.common.ParseField; diff --git a/server/src/main/java/org/elasticsearch/search/profile/ProfileShardResult.java b/server/src/main/java/org/opensearch/search/profile/ProfileShardResult.java similarity index 93% rename from server/src/main/java/org/elasticsearch/search/profile/ProfileShardResult.java rename to server/src/main/java/org/opensearch/search/profile/ProfileShardResult.java index 2a1fb0ba9b1..5ba9dc5dc05 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/ProfileShardResult.java +++ b/server/src/main/java/org/opensearch/search/profile/ProfileShardResult.java @@ -17,13 +17,13 @@ * under the License. */ -package org.elasticsearch.search.profile; +package org.opensearch.search.profile; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.io.stream.Writeable; -import org.elasticsearch.search.profile.aggregation.AggregationProfileShardResult; -import org.elasticsearch.search.profile.query.QueryProfileShardResult; +import org.opensearch.search.profile.aggregation.AggregationProfileShardResult; +import org.opensearch.search.profile.query.QueryProfileShardResult; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/profile/Profilers.java b/server/src/main/java/org/opensearch/search/profile/Profilers.java similarity index 90% rename from server/src/main/java/org/elasticsearch/search/profile/Profilers.java rename to server/src/main/java/org/opensearch/search/profile/Profilers.java index d754be41f6d..90fca612913 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/Profilers.java +++ b/server/src/main/java/org/opensearch/search/profile/Profilers.java @@ -17,11 +17,11 @@ * under the License. */ -package org.elasticsearch.search.profile; +package org.opensearch.search.profile; -import org.elasticsearch.search.internal.ContextIndexSearcher; -import org.elasticsearch.search.profile.aggregation.AggregationProfiler; -import org.elasticsearch.search.profile.query.QueryProfiler; +import org.opensearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.profile.aggregation.AggregationProfiler; +import org.opensearch.search.profile.query.QueryProfiler; import java.util.ArrayList; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/profile/SearchProfileShardResults.java b/server/src/main/java/org/opensearch/search/profile/SearchProfileShardResults.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/profile/SearchProfileShardResults.java rename to server/src/main/java/org/opensearch/search/profile/SearchProfileShardResults.java index da064c50a67..5bdc93cd40f 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/SearchProfileShardResults.java +++ b/server/src/main/java/org/opensearch/search/profile/SearchProfileShardResults.java @@ -1,5 +1,3 @@ -package org.elasticsearch.search.profile; - /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with @@ -19,6 +17,8 @@ package org.elasticsearch.search.profile; * under the License. */ +package org.opensearch.search.profile; + import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.io.stream.Writeable; @@ -26,10 +26,10 @@ import org.elasticsearch.common.xcontent.ToXContent.Params; import org.elasticsearch.common.xcontent.ToXContentFragment; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.search.profile.aggregation.AggregationProfileShardResult; -import org.elasticsearch.search.profile.aggregation.AggregationProfiler; -import org.elasticsearch.search.profile.query.QueryProfileShardResult; -import org.elasticsearch.search.profile.query.QueryProfiler; +import org.opensearch.search.profile.aggregation.AggregationProfileShardResult; +import org.opensearch.search.profile.aggregation.AggregationProfiler; +import org.opensearch.search.profile.query.QueryProfileShardResult; +import org.opensearch.search.profile.query.QueryProfiler; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/profile/Timer.java b/server/src/main/java/org/opensearch/search/profile/Timer.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/profile/Timer.java rename to server/src/main/java/org/opensearch/search/profile/Timer.java index 72b62ec5622..b812c9b740e 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/Timer.java +++ b/server/src/main/java/org/opensearch/search/profile/Timer.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile; +package org.opensearch.search.profile; /** Helps measure how much time is spent running some methods. * The {@link #start()} and {@link #stop()} methods should typically be called diff --git a/server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfileBreakdown.java b/server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfileBreakdown.java similarity index 92% rename from server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfileBreakdown.java rename to server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfileBreakdown.java index c2b279510b3..25fb9794a8d 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfileBreakdown.java +++ b/server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfileBreakdown.java @@ -17,9 +17,9 @@ * under the License. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; -import org.elasticsearch.search.profile.AbstractProfileBreakdown; +import org.opensearch.search.profile.AbstractProfileBreakdown; import java.util.HashMap; import java.util.Map; diff --git a/server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfileShardResult.java b/server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfileShardResult.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfileShardResult.java rename to server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfileShardResult.java index 80c873bb658..17fe1bd8fd8 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfileShardResult.java +++ b/server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfileShardResult.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; @@ -25,7 +25,7 @@ import org.elasticsearch.common.io.stream.Writeable; import org.elasticsearch.common.xcontent.ToXContentFragment; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.search.profile.ProfileResult; +import org.opensearch.search.profile.ProfileResult; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfiler.java b/server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfiler.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfiler.java rename to server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfiler.java index 3ea66f57b5b..da0fb7ca784 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationProfiler.java +++ b/server/src/main/java/org/opensearch/search/profile/aggregation/AggregationProfiler.java @@ -17,10 +17,10 @@ * under the License. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; import org.elasticsearch.search.aggregations.Aggregator; -import org.elasticsearch.search.profile.AbstractProfiler; +import org.opensearch.search.profile.AbstractProfiler; import java.util.HashMap; import java.util.LinkedList; diff --git a/server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationTimingType.java b/server/src/main/java/org/opensearch/search/profile/aggregation/AggregationTimingType.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationTimingType.java rename to server/src/main/java/org/opensearch/search/profile/aggregation/AggregationTimingType.java index 8a65ef2f72c..0b75a0cdd6e 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/aggregation/AggregationTimingType.java +++ b/server/src/main/java/org/opensearch/search/profile/aggregation/AggregationTimingType.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; import java.util.Locale; diff --git a/server/src/main/java/org/elasticsearch/search/profile/aggregation/InternalAggregationProfileTree.java b/server/src/main/java/org/opensearch/search/profile/aggregation/InternalAggregationProfileTree.java similarity index 93% rename from server/src/main/java/org/elasticsearch/search/profile/aggregation/InternalAggregationProfileTree.java rename to server/src/main/java/org/opensearch/search/profile/aggregation/InternalAggregationProfileTree.java index 44d47ef1224..9133c81e98c 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/aggregation/InternalAggregationProfileTree.java +++ b/server/src/main/java/org/opensearch/search/profile/aggregation/InternalAggregationProfileTree.java @@ -17,10 +17,10 @@ * under the License. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; import org.elasticsearch.search.aggregations.Aggregator; -import org.elasticsearch.search.profile.AbstractInternalProfileTree; +import org.opensearch.search.profile.AbstractInternalProfileTree; public class InternalAggregationProfileTree extends AbstractInternalProfileTree { diff --git a/server/src/main/java/org/elasticsearch/search/profile/aggregation/ProfilingAggregator.java b/server/src/main/java/org/opensearch/search/profile/aggregation/ProfilingAggregator.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/profile/aggregation/ProfilingAggregator.java rename to server/src/main/java/org/opensearch/search/profile/aggregation/ProfilingAggregator.java index bf446e20894..43f35fa5000 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/aggregation/ProfilingAggregator.java +++ b/server/src/main/java/org/opensearch/search/profile/aggregation/ProfilingAggregator.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.search.ScoreMode; @@ -25,8 +25,8 @@ import org.elasticsearch.search.aggregations.Aggregator; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.support.AggregationPath.PathElement; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.profile.Timer; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.profile.Timer; import org.opensearch.search.sort.SortOrder; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/profile/aggregation/ProfilingLeafBucketCollector.java b/server/src/main/java/org/opensearch/search/profile/aggregation/ProfilingLeafBucketCollector.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/profile/aggregation/ProfilingLeafBucketCollector.java rename to server/src/main/java/org/opensearch/search/profile/aggregation/ProfilingLeafBucketCollector.java index cc84b1cfb66..e87009b0987 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/aggregation/ProfilingLeafBucketCollector.java +++ b/server/src/main/java/org/opensearch/search/profile/aggregation/ProfilingLeafBucketCollector.java @@ -17,11 +17,11 @@ * under the License. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; import org.apache.lucene.search.Scorable; import org.elasticsearch.search.aggregations.LeafBucketCollector; -import org.elasticsearch.search.profile.Timer; +import org.opensearch.search.profile.Timer; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/profile/aggregation/package-info.java b/server/src/main/java/org/opensearch/search/profile/aggregation/package-info.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/profile/aggregation/package-info.java rename to server/src/main/java/org/opensearch/search/profile/aggregation/package-info.java index f23ba651d10..7836bea2cd6 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/aggregation/package-info.java +++ b/server/src/main/java/org/opensearch/search/profile/aggregation/package-info.java @@ -20,4 +20,4 @@ /** * Profiles the aggregation portion of a search request. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; diff --git a/server/src/main/java/org/elasticsearch/search/profile/package-info.java b/server/src/main/java/org/opensearch/search/profile/package-info.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/profile/package-info.java rename to server/src/main/java/org/opensearch/search/profile/package-info.java index 5bf2fa10ac5..8135df51aa5 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/package-info.java +++ b/server/src/main/java/org/opensearch/search/profile/package-info.java @@ -20,4 +20,4 @@ /** * Profiling for portions of the search request. */ -package org.elasticsearch.search.profile; +package org.opensearch.search.profile; diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/CollectorResult.java b/server/src/main/java/org/opensearch/search/profile/query/CollectorResult.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/profile/query/CollectorResult.java rename to server/src/main/java/org/opensearch/search/profile/query/CollectorResult.java index e6a26e97172..6caac7b9ac4 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/CollectorResult.java +++ b/server/src/main/java/org/opensearch/search/profile/query/CollectorResult.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.io.stream.StreamInput; diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/InternalProfileCollector.java b/server/src/main/java/org/opensearch/search/profile/query/InternalProfileCollector.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/profile/query/InternalProfileCollector.java rename to server/src/main/java/org/opensearch/search/profile/query/InternalProfileCollector.java index 993d91ab7a1..a73521fa4e8 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/InternalProfileCollector.java +++ b/server/src/main/java/org/opensearch/search/profile/query/InternalProfileCollector.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.search.Collector; diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/InternalQueryProfileTree.java b/server/src/main/java/org/opensearch/search/profile/query/InternalQueryProfileTree.java similarity index 93% rename from server/src/main/java/org/elasticsearch/search/profile/query/InternalQueryProfileTree.java rename to server/src/main/java/org/opensearch/search/profile/query/InternalQueryProfileTree.java index 953267aa89b..b7f882156bd 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/InternalQueryProfileTree.java +++ b/server/src/main/java/org/opensearch/search/profile/query/InternalQueryProfileTree.java @@ -17,11 +17,11 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.search.Query; -import org.elasticsearch.search.profile.AbstractInternalProfileTree; -import org.elasticsearch.search.profile.ProfileResult; +import org.opensearch.search.profile.AbstractInternalProfileTree; +import org.opensearch.search.profile.ProfileResult; /** * This class tracks the dependency tree for queries (scoring and rewriting) and diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/ProfileCollector.java b/server/src/main/java/org/opensearch/search/profile/query/ProfileCollector.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/profile/query/ProfileCollector.java rename to server/src/main/java/org/opensearch/search/profile/query/ProfileCollector.java index b900cb04f79..eaf71d2ab33 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/ProfileCollector.java +++ b/server/src/main/java/org/opensearch/search/profile/query/ProfileCollector.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.search.Collector; diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/ProfileScorer.java b/server/src/main/java/org/opensearch/search/profile/query/ProfileScorer.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/profile/query/ProfileScorer.java rename to server/src/main/java/org/opensearch/search/profile/query/ProfileScorer.java index e5155fc2c63..da4894f7972 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/ProfileScorer.java +++ b/server/src/main/java/org/opensearch/search/profile/query/ProfileScorer.java @@ -17,13 +17,13 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.search.DocIdSetIterator; import org.apache.lucene.search.Scorer; import org.apache.lucene.search.TwoPhaseIterator; import org.apache.lucene.search.Weight; -import org.elasticsearch.search.profile.Timer; +import org.opensearch.search.profile.Timer; import java.io.IOException; import java.util.Collection; diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/ProfileWeight.java b/server/src/main/java/org/opensearch/search/profile/query/ProfileWeight.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/profile/query/ProfileWeight.java rename to server/src/main/java/org/opensearch/search/profile/query/ProfileWeight.java index 8e1d4ed133b..aa3d51cd110 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/ProfileWeight.java +++ b/server/src/main/java/org/opensearch/search/profile/query/ProfileWeight.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.index.Term; @@ -27,7 +27,7 @@ import org.apache.lucene.search.Query; import org.apache.lucene.search.Scorer; import org.apache.lucene.search.ScorerSupplier; import org.apache.lucene.search.Weight; -import org.elasticsearch.search.profile.Timer; +import org.opensearch.search.profile.Timer; import java.io.IOException; import java.util.Set; diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/QueryProfileBreakdown.java b/server/src/main/java/org/opensearch/search/profile/query/QueryProfileBreakdown.java similarity index 91% rename from server/src/main/java/org/elasticsearch/search/profile/query/QueryProfileBreakdown.java rename to server/src/main/java/org/opensearch/search/profile/query/QueryProfileBreakdown.java index 21ec507dbaf..84a58b7d28e 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/QueryProfileBreakdown.java +++ b/server/src/main/java/org/opensearch/search/profile/query/QueryProfileBreakdown.java @@ -17,9 +17,9 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; -import org.elasticsearch.search.profile.AbstractProfileBreakdown; +import org.opensearch.search.profile.AbstractProfileBreakdown; /** * A record of timings for the various operations that may happen during query execution. diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/QueryProfileShardResult.java b/server/src/main/java/org/opensearch/search/profile/query/QueryProfileShardResult.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/profile/query/QueryProfileShardResult.java rename to server/src/main/java/org/opensearch/search/profile/query/QueryProfileShardResult.java index 74d9840dd9e..ec3f2bc48b3 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/QueryProfileShardResult.java +++ b/server/src/main/java/org/opensearch/search/profile/query/QueryProfileShardResult.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; @@ -25,7 +25,7 @@ import org.elasticsearch.common.io.stream.Writeable; import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.search.profile.ProfileResult; +import org.opensearch.search.profile.ProfileResult; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/QueryProfiler.java b/server/src/main/java/org/opensearch/search/profile/query/QueryProfiler.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/profile/query/QueryProfiler.java rename to server/src/main/java/org/opensearch/search/profile/query/QueryProfiler.java index 0051356e35a..2affdd9a489 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/QueryProfiler.java +++ b/server/src/main/java/org/opensearch/search/profile/query/QueryProfiler.java @@ -17,10 +17,10 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.search.Query; -import org.elasticsearch.search.profile.AbstractProfiler; +import org.opensearch.search.profile.AbstractProfiler; import java.util.Objects; diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/QueryTimingType.java b/server/src/main/java/org/opensearch/search/profile/query/QueryTimingType.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/profile/query/QueryTimingType.java rename to server/src/main/java/org/opensearch/search/profile/query/QueryTimingType.java index aecc41d8a23..5fb98acd623 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/QueryTimingType.java +++ b/server/src/main/java/org/opensearch/search/profile/query/QueryTimingType.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import java.util.Locale; @@ -36,4 +36,4 @@ public enum QueryTimingType { public String toString() { return name().toLowerCase(Locale.ROOT); } -} \ No newline at end of file +} diff --git a/server/src/main/java/org/elasticsearch/search/profile/query/package-info.java b/server/src/main/java/org/opensearch/search/profile/query/package-info.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/profile/query/package-info.java rename to server/src/main/java/org/opensearch/search/profile/query/package-info.java index 0e999f54570..8c72ad04102 100644 --- a/server/src/main/java/org/elasticsearch/search/profile/query/package-info.java +++ b/server/src/main/java/org/opensearch/search/profile/query/package-info.java @@ -20,4 +20,4 @@ /** * Profiles the query portion of a search request. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; diff --git a/server/src/main/java/org/elasticsearch/search/query/EarlyTerminatingCollector.java b/server/src/main/java/org/opensearch/search/query/EarlyTerminatingCollector.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/query/EarlyTerminatingCollector.java rename to server/src/main/java/org/opensearch/search/query/EarlyTerminatingCollector.java index 0633f1c6bbe..cece013ec44 100644 --- a/server/src/main/java/org/elasticsearch/search/query/EarlyTerminatingCollector.java +++ b/server/src/main/java/org/opensearch/search/query/EarlyTerminatingCollector.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.search.CollectionTerminatedException; diff --git a/server/src/main/java/org/elasticsearch/search/query/QueryCollectorContext.java b/server/src/main/java/org/opensearch/search/query/QueryCollectorContext.java similarity index 93% rename from server/src/main/java/org/elasticsearch/search/query/QueryCollectorContext.java rename to server/src/main/java/org/opensearch/search/query/QueryCollectorContext.java index baf6889ba07..b1d588be805 100644 --- a/server/src/main/java/org/elasticsearch/search/query/QueryCollectorContext.java +++ b/server/src/main/java/org/opensearch/search/query/QueryCollectorContext.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.apache.lucene.search.Collector; import org.apache.lucene.search.IndexSearcher; @@ -28,7 +28,7 @@ import org.apache.lucene.search.SimpleCollector; import org.apache.lucene.search.Weight; import org.elasticsearch.common.lucene.MinimumScoreCollector; import org.elasticsearch.common.lucene.search.FilteredCollector; -import org.elasticsearch.search.profile.query.InternalProfileCollector; +import org.opensearch.search.profile.query.InternalProfileCollector; import java.io.IOException; import java.util.ArrayList; @@ -36,10 +36,10 @@ import java.util.Collection; import java.util.Collections; import java.util.List; -import static org.elasticsearch.search.profile.query.CollectorResult.REASON_SEARCH_MIN_SCORE; -import static org.elasticsearch.search.profile.query.CollectorResult.REASON_SEARCH_MULTI; -import static org.elasticsearch.search.profile.query.CollectorResult.REASON_SEARCH_POST_FILTER; -import static org.elasticsearch.search.profile.query.CollectorResult.REASON_SEARCH_TERMINATE_AFTER_COUNT; +import static org.opensearch.search.profile.query.CollectorResult.REASON_SEARCH_MIN_SCORE; +import static org.opensearch.search.profile.query.CollectorResult.REASON_SEARCH_MULTI; +import static org.opensearch.search.profile.query.CollectorResult.REASON_SEARCH_POST_FILTER; +import static org.opensearch.search.profile.query.CollectorResult.REASON_SEARCH_TERMINATE_AFTER_COUNT; abstract class QueryCollectorContext { private static final Collector EMPTY_COLLECTOR = new SimpleCollector() { diff --git a/server/src/main/java/org/elasticsearch/search/query/QueryPhase.java b/server/src/main/java/org/opensearch/search/query/QueryPhase.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/query/QueryPhase.java rename to server/src/main/java/org/opensearch/search/query/QueryPhase.java index 75fed46ea62..ed46d8beab9 100644 --- a/server/src/main/java/org/elasticsearch/search/query/QueryPhase.java +++ b/server/src/main/java/org/opensearch/search/query/QueryPhase.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -59,15 +59,15 @@ import org.elasticsearch.search.DocValueFormat; import org.elasticsearch.search.SearchContextSourcePrinter; import org.elasticsearch.search.SearchService; import org.elasticsearch.search.aggregations.AggregationPhase; -import org.elasticsearch.search.internal.ContextIndexSearcher; -import org.elasticsearch.search.internal.ScrollContext; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.profile.ProfileShardResult; -import org.elasticsearch.search.profile.SearchProfileShardResults; -import org.elasticsearch.search.profile.query.InternalProfileCollector; +import org.opensearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.internal.ScrollContext; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.profile.ProfileShardResult; +import org.opensearch.search.profile.SearchProfileShardResults; +import org.opensearch.search.profile.query.InternalProfileCollector; import org.opensearch.search.rescore.RescorePhase; import org.opensearch.search.sort.SortAndFormats; -import org.elasticsearch.search.suggest.SuggestPhase; +import org.opensearch.search.suggest.SuggestPhase; import org.opensearch.tasks.TaskCancelledException; import org.opensearch.threadpool.ThreadPool; @@ -80,12 +80,12 @@ import java.util.LinkedList; import java.util.List; import java.util.concurrent.ExecutorService; -import static org.elasticsearch.search.query.QueryCollectorContext.createEarlyTerminationCollectorContext; -import static org.elasticsearch.search.query.QueryCollectorContext.createFilteredCollectorContext; -import static org.elasticsearch.search.query.QueryCollectorContext.createMinScoreCollectorContext; -import static org.elasticsearch.search.query.QueryCollectorContext.createMultiCollectorContext; -import static org.elasticsearch.search.query.TopDocsCollectorContext.createTopDocsCollectorContext; -import static org.elasticsearch.search.query.TopDocsCollectorContext.shortcutTotalHitCount; +import static org.opensearch.search.query.QueryCollectorContext.createEarlyTerminationCollectorContext; +import static org.opensearch.search.query.QueryCollectorContext.createFilteredCollectorContext; +import static org.opensearch.search.query.QueryCollectorContext.createMinScoreCollectorContext; +import static org.opensearch.search.query.QueryCollectorContext.createMultiCollectorContext; +import static org.opensearch.search.query.TopDocsCollectorContext.createTopDocsCollectorContext; +import static org.opensearch.search.query.TopDocsCollectorContext.shortcutTotalHitCount; /** diff --git a/server/src/main/java/org/elasticsearch/search/query/QueryPhaseExecutionException.java b/server/src/main/java/org/opensearch/search/query/QueryPhaseExecutionException.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/query/QueryPhaseExecutionException.java rename to server/src/main/java/org/opensearch/search/query/QueryPhaseExecutionException.java index 01a0bcde4ce..10fd05114d6 100644 --- a/server/src/main/java/org/elasticsearch/search/query/QueryPhaseExecutionException.java +++ b/server/src/main/java/org/opensearch/search/query/QueryPhaseExecutionException.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.search.SearchException; diff --git a/server/src/main/java/org/elasticsearch/search/query/QuerySearchRequest.java b/server/src/main/java/org/opensearch/search/query/QuerySearchRequest.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/query/QuerySearchRequest.java rename to server/src/main/java/org/opensearch/search/query/QuerySearchRequest.java index e12bcb370d9..96be98bb29e 100644 --- a/server/src/main/java/org/elasticsearch/search/query/QuerySearchRequest.java +++ b/server/src/main/java/org/opensearch/search/query/QuerySearchRequest.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.opensearch.Version; import org.opensearch.action.IndicesRequest; @@ -29,8 +29,8 @@ import org.opensearch.common.Strings; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.opensearch.search.dfs.AggregatedDfs; -import org.elasticsearch.search.internal.ShardSearchContextId; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.tasks.Task; import org.opensearch.tasks.TaskId; import org.opensearch.transport.TransportRequest; diff --git a/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java b/server/src/main/java/org/opensearch/search/query/QuerySearchResult.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java rename to server/src/main/java/org/opensearch/search/query/QuerySearchResult.java index 89214aa9c1f..cff61842225 100644 --- a/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java +++ b/server/src/main/java/org/opensearch/search/query/QuerySearchResult.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import static java.util.Collections.emptyList; import static org.elasticsearch.common.lucene.Lucene.readTopDocs; @@ -39,10 +39,10 @@ import org.elasticsearch.search.SearchShardTarget; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.InternalAggregations; import org.elasticsearch.search.aggregations.pipeline.PipelineAggregator; -import org.elasticsearch.search.internal.ShardSearchContextId; -import org.elasticsearch.search.internal.ShardSearchRequest; -import org.elasticsearch.search.profile.ProfileShardResult; -import org.elasticsearch.search.suggest.Suggest; +import org.opensearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchRequest; +import org.opensearch.search.profile.ProfileShardResult; +import org.opensearch.search.suggest.Suggest; public final class QuerySearchResult extends SearchPhaseResult { diff --git a/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java b/server/src/main/java/org/opensearch/search/query/ScrollQuerySearchResult.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java rename to server/src/main/java/org/opensearch/search/query/ScrollQuerySearchResult.java index 30902b6e473..ffe1aa68f99 100644 --- a/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java +++ b/server/src/main/java/org/opensearch/search/query/ScrollQuerySearchResult.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; diff --git a/server/src/main/java/org/elasticsearch/search/query/TopDocsCollectorContext.java b/server/src/main/java/org/opensearch/search/query/TopDocsCollectorContext.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/query/TopDocsCollectorContext.java rename to server/src/main/java/org/opensearch/search/query/TopDocsCollectorContext.java index 1a4bc2e954d..557306dffbc 100644 --- a/server/src/main/java/org/elasticsearch/search/query/TopDocsCollectorContext.java +++ b/server/src/main/java/org/opensearch/search/query/TopDocsCollectorContext.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.apache.lucene.index.FieldInfo; import org.apache.lucene.index.FieldInfos; @@ -61,8 +61,8 @@ import org.elasticsearch.common.util.CachedSupplier; import org.elasticsearch.index.search.ESToParentBlockJoinQuery; import org.elasticsearch.search.DocValueFormat; import org.opensearch.search.collapse.CollapseContext; -import org.elasticsearch.search.internal.ScrollContext; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.ScrollContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.rescore.RescoreContext; import org.opensearch.search.sort.SortAndFormats; @@ -70,8 +70,8 @@ import java.io.IOException; import java.util.Objects; import java.util.function.Supplier; -import static org.elasticsearch.search.profile.query.CollectorResult.REASON_SEARCH_COUNT; -import static org.elasticsearch.search.profile.query.CollectorResult.REASON_SEARCH_TOP_HITS; +import static org.opensearch.search.profile.query.CollectorResult.REASON_SEARCH_COUNT; +import static org.opensearch.search.profile.query.CollectorResult.REASON_SEARCH_TOP_HITS; /** * A {@link QueryCollectorContext} that creates top docs collector diff --git a/server/src/main/java/org/opensearch/search/rescore/RescorePhase.java b/server/src/main/java/org/opensearch/search/rescore/RescorePhase.java index 9d8c301b890..2e09b314a2a 100644 --- a/server/src/main/java/org/opensearch/search/rescore/RescorePhase.java +++ b/server/src/main/java/org/opensearch/search/rescore/RescorePhase.java @@ -23,7 +23,7 @@ import org.apache.lucene.search.ScoreDoc; import org.apache.lucene.search.TopDocs; import org.opensearch.OpenSearchException; import org.elasticsearch.common.lucene.search.TopDocsAndMaxScore; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; diff --git a/server/src/main/java/org/opensearch/search/slice/SliceBuilder.java b/server/src/main/java/org/opensearch/search/slice/SliceBuilder.java index 3edb7bf56d9..21aa597882c 100644 --- a/server/src/main/java/org/opensearch/search/slice/SliceBuilder.java +++ b/server/src/main/java/org/opensearch/search/slice/SliceBuilder.java @@ -43,7 +43,7 @@ import org.elasticsearch.index.fielddata.IndexNumericFieldData; import org.elasticsearch.index.mapper.IdFieldMapper; import org.elasticsearch.index.mapper.MappedFieldType; import org.elasticsearch.index.query.QueryShardContext; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.ShardSearchRequest; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/DirectSpellcheckerSettings.java b/server/src/main/java/org/opensearch/search/suggest/DirectSpellcheckerSettings.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/DirectSpellcheckerSettings.java rename to server/src/main/java/org/opensearch/search/suggest/DirectSpellcheckerSettings.java index 1250dfdac3b..1c30f025b1d 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/DirectSpellcheckerSettings.java +++ b/server/src/main/java/org/opensearch/search/suggest/DirectSpellcheckerSettings.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.apache.lucene.search.spell.DirectSpellChecker; import org.apache.lucene.search.spell.StringDistance; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/SortBy.java b/server/src/main/java/org/opensearch/search/suggest/SortBy.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/suggest/SortBy.java rename to server/src/main/java/org/opensearch/search/suggest/SortBy.java index 328fc4e8218..4b775321444 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/SortBy.java +++ b/server/src/main/java/org/opensearch/search/suggest/SortBy.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/Suggest.java b/server/src/main/java/org/opensearch/search/suggest/Suggest.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/suggest/Suggest.java rename to server/src/main/java/org/opensearch/search/suggest/Suggest.java index 8bfc2536e8f..18baa8d520f 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/Suggest.java +++ b/server/src/main/java/org/opensearch/search/suggest/Suggest.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.apache.lucene.util.CollectionUtil; import org.apache.lucene.util.SetOnce; @@ -37,11 +37,11 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentParserUtils; import org.opensearch.rest.action.search.RestSearchAction; import org.elasticsearch.search.aggregations.Aggregation; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; -import org.elasticsearch.search.suggest.completion.CompletionSuggestion; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestion; -import org.elasticsearch.search.suggest.term.TermSuggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.completion.CompletionSuggestion; +import org.opensearch.search.suggest.phrase.PhraseSuggestion; +import org.opensearch.search.suggest.term.TermSuggestion; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/SuggestBuilder.java b/server/src/main/java/org/opensearch/search/suggest/SuggestBuilder.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/SuggestBuilder.java rename to server/src/main/java/org/opensearch/search/suggest/SuggestBuilder.java index f5b365ae6ff..dae7d4ec6bc 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/SuggestBuilder.java +++ b/server/src/main/java/org/opensearch/search/suggest/SuggestBuilder.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.elasticsearch.common.Nullable; import org.elasticsearch.common.ParseField; @@ -30,7 +30,7 @@ import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.index.query.QueryShardContext; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; import java.io.IOException; import java.util.HashMap; @@ -81,7 +81,7 @@ public class SuggestBuilder implements Writeable, ToXContentObject { /** * Sets the text to provide suggestions for. The suggest text is a required option that needs - * to be set either via this setter or via the {@link org.elasticsearch.search.suggest.SuggestionBuilder#text(String)} method. + * to be set either via this setter or via the {@link org.opensearch.search.suggest.SuggestionBuilder#text(String)} method. *

* The suggest text gets analyzed by the suggest analyzer or the suggest field search analyzer. * For each analyzed token, suggested terms are suggested if possible. @@ -100,7 +100,7 @@ public class SuggestBuilder implements Writeable, ToXContentObject { } /** - * Adds an {@link org.elasticsearch.search.suggest.SuggestionBuilder} instance under a user defined name. + * Adds an {@link org.opensearch.search.suggest.SuggestionBuilder} instance under a user defined name. * The order in which the Suggestions are added, is the same as in the response. * @throws IllegalArgumentException if two suggestions added have the same name */ diff --git a/server/src/main/java/org/elasticsearch/search/suggest/SuggestBuilders.java b/server/src/main/java/org/opensearch/search/suggest/SuggestBuilders.java similarity index 76% rename from server/src/main/java/org/elasticsearch/search/suggest/SuggestBuilders.java rename to server/src/main/java/org/opensearch/search/suggest/SuggestBuilders.java index 6050d4ffb4e..43cb70dcc89 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/SuggestBuilders.java +++ b/server/src/main/java/org/opensearch/search/suggest/SuggestBuilders.java @@ -17,11 +17,11 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; -import org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder; -import org.elasticsearch.search.suggest.term.TermSuggestionBuilder; +import org.opensearch.search.suggest.completion.CompletionSuggestionBuilder; +import org.opensearch.search.suggest.phrase.PhraseSuggestionBuilder; +import org.opensearch.search.suggest.term.TermSuggestionBuilder; /** * A static factory for building suggester lookup queries @@ -31,7 +31,7 @@ public abstract class SuggestBuilders { /** * Creates a term suggestion lookup query with the provided field * - * @return a {@link org.elasticsearch.search.suggest.term.TermSuggestionBuilder} + * @return a {@link org.opensearch.search.suggest.term.TermSuggestionBuilder} * instance */ public static TermSuggestionBuilder termSuggestion(String fieldname) { @@ -41,7 +41,7 @@ public abstract class SuggestBuilders { /** * Creates a phrase suggestion lookup query with the provided field * - * @return a {@link org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder} + * @return a {@link org.opensearch.search.suggest.phrase.PhraseSuggestionBuilder} * instance */ public static PhraseSuggestionBuilder phraseSuggestion(String fieldname) { @@ -51,7 +51,7 @@ public abstract class SuggestBuilders { /** * Creates a completion suggestion lookup query with the provided field * - * @return a {@link org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder} + * @return a {@link org.opensearch.search.suggest.completion.CompletionSuggestionBuilder} * instance */ public static CompletionSuggestionBuilder completionSuggestion(String fieldname) { diff --git a/server/src/main/java/org/elasticsearch/search/suggest/SuggestPhase.java b/server/src/main/java/org/opensearch/search/suggest/SuggestPhase.java similarity index 85% rename from server/src/main/java/org/elasticsearch/search/suggest/SuggestPhase.java rename to server/src/main/java/org/opensearch/search/suggest/SuggestPhase.java index 05ac685e8f2..fe5064de230 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/SuggestPhase.java +++ b/server/src/main/java/org/opensearch/search/suggest/SuggestPhase.java @@ -16,15 +16,15 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.apache.lucene.util.CharsRefBuilder; import org.opensearch.OpenSearchException; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.suggest.Suggest.Suggestion; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/Suggester.java b/server/src/main/java/org/opensearch/search/suggest/Suggester.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/suggest/Suggester.java rename to server/src/main/java/org/opensearch/search/suggest/Suggester.java index 3146d7a0ffa..574173387f8 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/Suggester.java +++ b/server/src/main/java/org/opensearch/search/suggest/Suggester.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.util.CharsRefBuilder; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/SuggestionBuilder.java b/server/src/main/java/org/opensearch/search/suggest/SuggestionBuilder.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/SuggestionBuilder.java rename to server/src/main/java/org/opensearch/search/suggest/SuggestionBuilder.java index 2515e5b4811..8d9addadb0e 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/SuggestionBuilder.java +++ b/server/src/main/java/org/opensearch/search/suggest/SuggestionBuilder.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.apache.lucene.analysis.Analyzer; import org.elasticsearch.OpenSearchParseException; @@ -33,7 +33,7 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.index.mapper.MappedFieldType; import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.index.query.QueryShardContext; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; import java.io.IOException; import java.util.Objects; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/SuggestionSearchContext.java b/server/src/main/java/org/opensearch/search/suggest/SuggestionSearchContext.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/suggest/SuggestionSearchContext.java rename to server/src/main/java/org/opensearch/search/suggest/SuggestionSearchContext.java index 165f70ba3c0..d9ba142331d 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/SuggestionSearchContext.java +++ b/server/src/main/java/org/opensearch/search/suggest/SuggestionSearchContext.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.util.BytesRef; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionStats.java b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionStats.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionStats.java rename to server/src/main/java/org/opensearch/search/suggest/completion/CompletionStats.java index 8015555b41d..9a488d89de8 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionStats.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionStats.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.opensearch.common.FieldMemoryStats; import org.elasticsearch.common.Nullable; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggester.java b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggester.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggester.java rename to server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggester.java index 3763fd49629..be20587e758 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggester.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggester.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.search.BulkScorer; @@ -29,8 +29,8 @@ import org.apache.lucene.search.suggest.document.TopSuggestDocsCollector; import org.apache.lucene.util.CharsRefBuilder; import org.elasticsearch.common.text.Text; import org.elasticsearch.index.mapper.CompletionFieldMapper; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.Suggester; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.Suggester; import java.io.IOException; import java.util.Collections; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestion.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java rename to server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestion.java index 08a02a3df09..3af045dca1b 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestion.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.search.ScoreDoc; @@ -31,8 +31,8 @@ import org.elasticsearch.common.xcontent.ObjectParser; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.search.SearchHit; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.Suggest.Suggestion; import java.io.IOException; import java.util.Collections; @@ -47,7 +47,7 @@ import java.util.Set; import static org.elasticsearch.common.xcontent.XContentParserUtils.ensureExpectedToken; import static org.elasticsearch.search.SearchHit.unknownMetaFieldConsumer; -import static org.elasticsearch.search.suggest.Suggest.COMPARATOR; +import static org.opensearch.search.suggest.Suggest.COMPARATOR; /** * Suggestion response for {@link CompletionSuggester} results diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionBuilder.java b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestionBuilder.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionBuilder.java rename to server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestionBuilder.java index 8979f74abfd..afd3b5febd0 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionBuilder.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestionBuilder.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.elasticsearch.OpenSearchParseException; import org.opensearch.Version; @@ -38,10 +38,10 @@ import org.elasticsearch.index.mapper.CompletionFieldMapper; import org.elasticsearch.index.mapper.MappedFieldType; import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.index.query.QueryShardContext; -import org.elasticsearch.search.suggest.SuggestionBuilder; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; -import org.elasticsearch.search.suggest.completion.context.ContextMapping; -import org.elasticsearch.search.suggest.completion.context.ContextMappings; +import org.opensearch.search.suggest.SuggestionBuilder; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.completion.context.ContextMapping; +import org.opensearch.search.suggest.completion.context.ContextMappings; import java.io.IOException; import java.io.InputStream; @@ -199,8 +199,8 @@ public class CompletionSuggestionBuilder extends SuggestionBuilder> queryContexts) { Objects.requireNonNull(queryContexts, "contexts must not be null"); diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionContext.java b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestionContext.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionContext.java rename to server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestionContext.java index e7c0b45745b..c8c73916faa 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionContext.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/CompletionSuggestionContext.java @@ -16,16 +16,16 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.search.suggest.document.CompletionQuery; import org.apache.lucene.util.BytesRef; import org.elasticsearch.common.unit.Fuzziness; import org.elasticsearch.index.mapper.CompletionFieldMapper; import org.elasticsearch.index.query.QueryShardContext; -import org.elasticsearch.search.suggest.SuggestionSearchContext; -import org.elasticsearch.search.suggest.completion.context.ContextMapping; -import org.elasticsearch.search.suggest.completion.context.ContextMappings; +import org.opensearch.search.suggest.SuggestionSearchContext; +import org.opensearch.search.suggest.completion.context.ContextMapping; +import org.opensearch.search.suggest.completion.context.ContextMappings; import java.util.Collections; import java.util.List; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/FuzzyOptions.java b/server/src/main/java/org/opensearch/search/suggest/completion/FuzzyOptions.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/FuzzyOptions.java rename to server/src/main/java/org/opensearch/search/suggest/completion/FuzzyOptions.java index 5d7f4159d18..ffc3c4a7119 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/FuzzyOptions.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/FuzzyOptions.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.search.suggest.document.FuzzyCompletionQuery; import org.apache.lucene.util.automaton.Operations; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/RegexOptions.java b/server/src/main/java/org/opensearch/search/suggest/completion/RegexOptions.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/RegexOptions.java rename to server/src/main/java/org/opensearch/search/suggest/completion/RegexOptions.java index a8ee7dc347b..677e2980056 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/RegexOptions.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/RegexOptions.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.util.automaton.Operations; import org.apache.lucene.util.automaton.RegExp; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/TopSuggestGroupDocsCollector.java b/server/src/main/java/org/opensearch/search/suggest/completion/TopSuggestGroupDocsCollector.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/TopSuggestGroupDocsCollector.java rename to server/src/main/java/org/opensearch/search/suggest/completion/TopSuggestGroupDocsCollector.java index 30c642dcdeb..889e7288525 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/TopSuggestGroupDocsCollector.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/TopSuggestGroupDocsCollector.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.search.suggest.document.TopSuggestDocsCollector; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java b/server/src/main/java/org/opensearch/search/suggest/completion/context/CategoryContextMapping.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java rename to server/src/main/java/org/opensearch/search/suggest/completion/context/CategoryContextMapping.java index 00c6335877a..9044e717e52 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/context/CategoryContextMapping.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion.context; +package org.opensearch.search.suggest.completion.context; import org.apache.lucene.document.SortedDocValuesField; import org.apache.lucene.document.SortedSetDocValuesField; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryQueryContext.java b/server/src/main/java/org/opensearch/search/suggest/completion/context/CategoryQueryContext.java similarity index 93% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryQueryContext.java rename to server/src/main/java/org/opensearch/search/suggest/completion/context/CategoryQueryContext.java index e830377c4ce..9135fe0a7e4 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryQueryContext.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/context/CategoryQueryContext.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion.context; +package org.opensearch.search.suggest.completion.context; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.xcontent.ObjectParser; @@ -29,9 +29,9 @@ import org.elasticsearch.common.xcontent.XContentParser; import java.io.IOException; import java.util.Objects; -import static org.elasticsearch.search.suggest.completion.context.CategoryContextMapping.CONTEXT_BOOST; -import static org.elasticsearch.search.suggest.completion.context.CategoryContextMapping.CONTEXT_PREFIX; -import static org.elasticsearch.search.suggest.completion.context.CategoryContextMapping.CONTEXT_VALUE; +import static org.opensearch.search.suggest.completion.context.CategoryContextMapping.CONTEXT_BOOST; +import static org.opensearch.search.suggest.completion.context.CategoryContextMapping.CONTEXT_PREFIX; +import static org.opensearch.search.suggest.completion.context.CategoryContextMapping.CONTEXT_VALUE; /** * Defines the query context for {@link CategoryContextMapping} diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextBuilder.java b/server/src/main/java/org/opensearch/search/suggest/completion/context/ContextBuilder.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextBuilder.java rename to server/src/main/java/org/opensearch/search/suggest/completion/context/ContextBuilder.java index b6713f81ec4..3ea63e09fc2 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextBuilder.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/context/ContextBuilder.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion.context; +package org.opensearch.search.suggest.completion.context; /** * Builder for {@link ContextMapping} diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextMapping.java b/server/src/main/java/org/opensearch/search/suggest/completion/context/ContextMapping.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextMapping.java rename to server/src/main/java/org/opensearch/search/suggest/completion/context/ContextMapping.java index 683abf79915..23597b403ce 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextMapping.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/context/ContextMapping.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion.context; +package org.opensearch.search.suggest.completion.context; import org.elasticsearch.OpenSearchParseException; import org.opensearch.Version; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextMappings.java b/server/src/main/java/org/opensearch/search/suggest/completion/context/ContextMappings.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextMappings.java rename to server/src/main/java/org/opensearch/search/suggest/completion/context/ContextMappings.java index 0c4a10b4b25..6931e919f12 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/ContextMappings.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/context/ContextMappings.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion.context; +package org.opensearch.search.suggest.completion.context; import org.apache.lucene.search.suggest.document.CompletionQuery; import org.apache.lucene.search.suggest.document.ContextQuery; @@ -31,7 +31,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.index.mapper.CompletionFieldMapper; import org.elasticsearch.index.mapper.DocumentMapperParser; import org.elasticsearch.index.mapper.ParseContext; -import org.elasticsearch.search.suggest.completion.context.ContextMapping.Type; +import org.opensearch.search.suggest.completion.context.ContextMapping.Type; import java.io.IOException; import java.util.ArrayList; @@ -45,8 +45,8 @@ import java.util.Objects; import java.util.Set; import java.util.stream.Collectors; -import static org.elasticsearch.search.suggest.completion.context.ContextMapping.FIELD_NAME; -import static org.elasticsearch.search.suggest.completion.context.ContextMapping.FIELD_TYPE; +import static org.opensearch.search.suggest.completion.context.ContextMapping.FIELD_NAME; +import static org.opensearch.search.suggest.completion.context.ContextMapping.FIELD_TYPE; /** * ContextMappings indexes context-enabled suggestion fields @@ -94,7 +94,7 @@ public class ContextMappings implements ToXContent, Iterable> /** * Adds a context-enabled field for all the defined mappings to document - * see {@link org.elasticsearch.search.suggest.completion.context.ContextMappings.TypedContextField} + * see {@link org.opensearch.search.suggest.completion.context.ContextMappings.TypedContextField} */ public void addField(ParseContext.Document document, String name, String input, int weight, Map> contexts) { document.add(new TypedContextField(name, input, weight, contexts, document)); @@ -196,7 +196,7 @@ public class ContextMappings implements ToXContent, Iterable> /** * Maps an output context list to a map of context mapping names and their values * - * see {@link org.elasticsearch.search.suggest.completion.context.ContextMappings.TypedContextField} + * see {@link org.opensearch.search.suggest.completion.context.ContextMappings.TypedContextField} * @return a map of context names and their values * */ diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/GeoContextMapping.java b/server/src/main/java/org/opensearch/search/suggest/completion/context/GeoContextMapping.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/context/GeoContextMapping.java rename to server/src/main/java/org/opensearch/search/suggest/completion/context/GeoContextMapping.java index 97119ca0123..31004e0d1ed 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/GeoContextMapping.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/context/GeoContextMapping.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion.context; +package org.opensearch.search.suggest.completion.context; import org.apache.lucene.document.LatLonDocValuesField; import org.apache.lucene.document.LatLonPoint; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/GeoQueryContext.java b/server/src/main/java/org/opensearch/search/suggest/completion/context/GeoQueryContext.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/context/GeoQueryContext.java rename to server/src/main/java/org/opensearch/search/suggest/completion/context/GeoQueryContext.java index f3a54acd2fd..9e57c676a1b 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/GeoQueryContext.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/context/GeoQueryContext.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion.context; +package org.opensearch.search.suggest.completion.context; import org.elasticsearch.OpenSearchParseException; import org.elasticsearch.common.ParseField; @@ -34,10 +34,10 @@ import java.util.List; import java.util.Objects; import static org.elasticsearch.common.geo.GeoUtils.parsePrecision; -import static org.elasticsearch.search.suggest.completion.context.GeoContextMapping.CONTEXT_BOOST; -import static org.elasticsearch.search.suggest.completion.context.GeoContextMapping.CONTEXT_NEIGHBOURS; -import static org.elasticsearch.search.suggest.completion.context.GeoContextMapping.CONTEXT_PRECISION; -import static org.elasticsearch.search.suggest.completion.context.GeoContextMapping.CONTEXT_VALUE; +import static org.opensearch.search.suggest.completion.context.GeoContextMapping.CONTEXT_BOOST; +import static org.opensearch.search.suggest.completion.context.GeoContextMapping.CONTEXT_NEIGHBOURS; +import static org.opensearch.search.suggest.completion.context.GeoContextMapping.CONTEXT_PRECISION; +import static org.opensearch.search.suggest.completion.context.GeoContextMapping.CONTEXT_VALUE; /** * Defines the query context for {@link GeoContextMapping} diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/package-info.java b/server/src/main/java/org/opensearch/search/suggest/completion/context/package-info.java similarity index 93% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/context/package-info.java rename to server/src/main/java/org/opensearch/search/suggest/completion/context/package-info.java index ba529e687c8..1a47e566360 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/context/package-info.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/context/package-info.java @@ -20,4 +20,4 @@ /** * Support for limiting the completion suggesters results to within a "context" like a geographic location or a category. */ -package org.elasticsearch.search.suggest.completion.context; +package org.opensearch.search.suggest.completion.context; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/package-info.java b/server/src/main/java/org/opensearch/search/suggest/completion/package-info.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/suggest/completion/package-info.java rename to server/src/main/java/org/opensearch/search/suggest/completion/package-info.java index dfa3f548e86..04c7f607ccb 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/package-info.java +++ b/server/src/main/java/org/opensearch/search/suggest/completion/package-info.java @@ -20,4 +20,4 @@ /** * Suggests alternate queries by fancy prefix matching. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/package-info.java b/server/src/main/java/org/opensearch/search/suggest/package-info.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/package-info.java rename to server/src/main/java/org/opensearch/search/suggest/package-info.java index b2da9561083..4158d4c4f77 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/package-info.java +++ b/server/src/main/java/org/opensearch/search/suggest/package-info.java @@ -20,4 +20,4 @@ /** * Support for suggesting alternate queries. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/CandidateGenerator.java b/server/src/main/java/org/opensearch/search/suggest/phrase/CandidateGenerator.java similarity index 90% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/CandidateGenerator.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/CandidateGenerator.java index 8730330d39f..c6d187f191d 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/CandidateGenerator.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/CandidateGenerator.java @@ -16,12 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.codecs.TermStats; import org.apache.lucene.util.BytesRef; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/CandidateScorer.java b/server/src/main/java/org/opensearch/search/suggest/phrase/CandidateScorer.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/CandidateScorer.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/CandidateScorer.java index d93ef42ee4f..661798e39b2 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/CandidateScorer.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/CandidateScorer.java @@ -16,11 +16,11 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.util.PriorityQueue; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/Correction.java b/server/src/main/java/org/opensearch/search/suggest/phrase/Correction.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/Correction.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/Correction.java index 23db2b0fcbb..6df4f66ce38 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/Correction.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/Correction.java @@ -16,11 +16,11 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefBuilder; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java b/server/src/main/java/org/opensearch/search/suggest/phrase/DirectCandidateGenerator.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/DirectCandidateGenerator.java index 381812104ba..be7b131c744 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/DirectCandidateGenerator.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.TokenStream; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGeneratorBuilder.java b/server/src/main/java/org/opensearch/search/suggest/phrase/DirectCandidateGeneratorBuilder.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGeneratorBuilder.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/DirectCandidateGeneratorBuilder.java index 6eecad29a10..480a7cbd8d9 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGeneratorBuilder.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/DirectCandidateGeneratorBuilder.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.search.spell.DirectSpellChecker; import org.apache.lucene.search.spell.JaroWinklerDistance; @@ -36,8 +36,8 @@ import org.elasticsearch.common.xcontent.ConstructingObjectParser; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.index.mapper.MapperService; -import org.elasticsearch.search.suggest.SortBy; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder.CandidateGenerator; +import org.opensearch.search.suggest.SortBy; +import org.opensearch.search.suggest.phrase.PhraseSuggestionBuilder.CandidateGenerator; import java.io.IOException; import java.util.Locale; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/Laplace.java b/server/src/main/java/org/opensearch/search/suggest/phrase/Laplace.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/Laplace.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/Laplace.java index 4ca2483c6ae..7dd314896f3 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/Laplace.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/Laplace.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Terms; @@ -28,7 +28,7 @@ import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentParser.Token; -import org.elasticsearch.search.suggest.phrase.WordScorer.WordScorerFactory; +import org.opensearch.search.suggest.phrase.WordScorer.WordScorerFactory; import java.io.IOException; import java.util.Objects; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java b/server/src/main/java/org/opensearch/search/suggest/phrase/LaplaceScorer.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/LaplaceScorer.java index 25539b00163..a45a7be5022 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/LaplaceScorer.java @@ -16,12 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Terms; import org.apache.lucene.util.BytesRef; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpolatingScorer.java b/server/src/main/java/org/opensearch/search/suggest/phrase/LinearInterpolatingScorer.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpolatingScorer.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/LinearInterpolatingScorer.java index aca226ea416..1157af62ce8 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpolatingScorer.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/LinearInterpolatingScorer.java @@ -16,12 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Terms; import org.apache.lucene.util.BytesRef; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpolation.java b/server/src/main/java/org/opensearch/search/suggest/phrase/LinearInterpolation.java similarity index 98% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpolation.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/LinearInterpolation.java index ef74017f733..e2d17ec97d1 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpolation.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/LinearInterpolation.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Terms; @@ -29,7 +29,7 @@ import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentParser.Token; -import org.elasticsearch.search.suggest.phrase.WordScorer.WordScorerFactory; +import org.opensearch.search.suggest.phrase.WordScorer.WordScorerFactory; import java.io.IOException; import java.util.Objects; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/MultiCandidateGeneratorWrapper.java b/server/src/main/java/org/opensearch/search/suggest/phrase/MultiCandidateGeneratorWrapper.java similarity index 92% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/MultiCandidateGeneratorWrapper.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/MultiCandidateGeneratorWrapper.java index e0e93e26164..01fe66f540b 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/MultiCandidateGeneratorWrapper.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/MultiCandidateGeneratorWrapper.java @@ -16,12 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.codecs.TermStats; import org.apache.lucene.util.BytesRef; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java b/server/src/main/java/org/opensearch/search/suggest/phrase/NoisyChannelSpellChecker.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/NoisyChannelSpellChecker.java index 9612d29f4f5..49cafe676e4 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/NoisyChannelSpellChecker.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.shingle.ShingleFilter; @@ -25,8 +25,8 @@ import org.apache.lucene.analysis.tokenattributes.TypeAttribute; import org.apache.lucene.codecs.TermStats; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefBuilder; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java b/server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggester.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggester.java index fbb056f44fa..7b6260f71ed 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggester.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.analysis.Analyzer; @@ -39,12 +39,12 @@ import org.elasticsearch.index.query.ParsedQuery; import org.elasticsearch.index.query.QueryBuilder; import org.elasticsearch.index.query.QueryShardContext; import org.opensearch.script.TemplateScript; -import org.elasticsearch.search.suggest.Suggest.Suggestion; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; -import org.elasticsearch.search.suggest.Suggester; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; -import org.elasticsearch.search.suggest.phrase.NoisyChannelSpellChecker.Result; +import org.opensearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.Suggester; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.phrase.NoisyChannelSpellChecker.Result; import java.io.CharArrayReader; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestion.java b/server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestion.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestion.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestion.java index 034b00e6a15..97491484581 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestion.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestion.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.io.stream.StreamInput; @@ -26,8 +26,8 @@ import org.elasticsearch.common.text.Text; import org.elasticsearch.common.xcontent.ConstructingObjectParser; import org.elasticsearch.common.xcontent.ObjectParser; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.Suggest.Suggestion; import java.io.IOException; import java.util.Objects; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilder.java b/server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestionBuilder.java similarity index 99% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilder.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestionBuilder.java index b1b6fc323c8..0f6762ad401 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilder.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestionBuilder.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.analysis.Analyzer; @@ -40,9 +40,9 @@ import org.elasticsearch.index.query.QueryShardContext; import org.opensearch.script.Script; import org.opensearch.script.ScriptType; import org.opensearch.script.TemplateScript; -import org.elasticsearch.search.suggest.SuggestionBuilder; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestionContext.DirectCandidateGenerator; +import org.opensearch.search.suggest.SuggestionBuilder; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.phrase.PhraseSuggestionContext.DirectCandidateGenerator; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionContext.java b/server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestionContext.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionContext.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestionContext.java index b9b6fd39e98..76945c9c457 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionContext.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/PhraseSuggestionContext.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.index.IndexReader; @@ -24,8 +24,8 @@ import org.apache.lucene.index.Terms; import org.apache.lucene.util.BytesRef; import org.elasticsearch.index.query.QueryShardContext; import org.opensearch.script.TemplateScript; -import org.elasticsearch.search.suggest.DirectSpellcheckerSettings; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.DirectSpellcheckerSettings; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; import java.util.ArrayList; import java.util.HashMap; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/SmoothingModel.java b/server/src/main/java/org/opensearch/search/suggest/phrase/SmoothingModel.java similarity index 96% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/SmoothingModel.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/SmoothingModel.java index 9d8f7c61a3a..8f228e13a05 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/SmoothingModel.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/SmoothingModel.java @@ -17,14 +17,14 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.opensearch.common.ParsingException; import org.elasticsearch.common.io.stream.NamedWriteable; import org.elasticsearch.common.xcontent.ToXContentFragment; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.search.suggest.phrase.WordScorer.WordScorerFactory; +import org.opensearch.search.suggest.phrase.WordScorer.WordScorerFactory; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoff.java b/server/src/main/java/org/opensearch/search/suggest/phrase/StupidBackoff.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoff.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/StupidBackoff.java index 29d03890b27..0e81eef7b78 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoff.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/StupidBackoff.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Terms; @@ -28,7 +28,7 @@ import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentParser.Token; -import org.elasticsearch.search.suggest.phrase.WordScorer.WordScorerFactory; +import org.opensearch.search.suggest.phrase.WordScorer.WordScorerFactory; import java.io.IOException; import java.util.Objects; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java b/server/src/main/java/org/opensearch/search/suggest/phrase/StupidBackoffScorer.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/StupidBackoffScorer.java index 54493acf8a5..f3f31d678e7 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/StupidBackoffScorer.java @@ -16,12 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Terms; import org.apache.lucene.util.BytesRef; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/WordScorer.java b/server/src/main/java/org/opensearch/search/suggest/phrase/WordScorer.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/WordScorer.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/WordScorer.java index adee76e8a17..b0746922d16 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/WordScorer.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/WordScorer.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.MultiTerms; @@ -26,8 +26,8 @@ import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefBuilder; import org.elasticsearch.common.lucene.index.FreqTermsEnum; import org.elasticsearch.common.util.BigArrays; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.Candidate; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator.CandidateSet; import java.io.IOException; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/package-info.java b/server/src/main/java/org/opensearch/search/suggest/phrase/package-info.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/suggest/phrase/package-info.java rename to server/src/main/java/org/opensearch/search/suggest/phrase/package-info.java index b721881b769..c32d7a4eee7 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/package-info.java +++ b/server/src/main/java/org/opensearch/search/suggest/phrase/package-info.java @@ -20,4 +20,4 @@ /** * Suggests alternate queries by breaking the query into terms and suggesting terms that are frequently found together. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java b/server/src/main/java/org/opensearch/search/suggest/term/TermSuggester.java similarity index 94% rename from server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java rename to server/src/main/java/org/opensearch/search/suggest/term/TermSuggester.java index 7bb56882c59..da4bcb8c287 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java +++ b/server/src/main/java/org/opensearch/search/suggest/term/TermSuggester.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Term; @@ -28,9 +28,9 @@ import org.apache.lucene.util.BytesRefBuilder; import org.apache.lucene.util.CharsRefBuilder; import org.opensearch.common.bytes.BytesArray; import org.elasticsearch.common.text.Text; -import org.elasticsearch.search.suggest.Suggester; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; -import org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator; +import org.opensearch.search.suggest.Suggester; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.phrase.DirectCandidateGenerator; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestion.java b/server/src/main/java/org/opensearch/search/suggest/term/TermSuggestion.java similarity index 97% rename from server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestion.java rename to server/src/main/java/org/opensearch/search/suggest/term/TermSuggestion.java index dcbccd1854f..c3f92590f11 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestion.java +++ b/server/src/main/java/org/opensearch/search/suggest/term/TermSuggestion.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; import org.opensearch.OpenSearchException; import org.opensearch.Version; @@ -28,10 +28,10 @@ import org.elasticsearch.common.xcontent.ConstructingObjectParser; import org.elasticsearch.common.xcontent.ObjectParser; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.search.suggest.SortBy; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.Suggest.Suggestion; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.SortBy; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; import java.io.IOException; import java.util.Comparator; diff --git a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestionBuilder.java b/server/src/main/java/org/opensearch/search/suggest/term/TermSuggestionBuilder.java similarity index 92% rename from server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestionBuilder.java rename to server/src/main/java/org/opensearch/search/suggest/term/TermSuggestionBuilder.java index adf1f205717..cd88cdc50de 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestionBuilder.java +++ b/server/src/main/java/org/opensearch/search/suggest/term/TermSuggestionBuilder.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; import org.apache.lucene.search.spell.DirectSpellChecker; import org.apache.lucene.search.spell.JaroWinklerDistance; @@ -33,32 +33,32 @@ import org.elasticsearch.common.io.stream.Writeable; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.index.query.QueryShardContext; -import org.elasticsearch.search.suggest.DirectSpellcheckerSettings; -import org.elasticsearch.search.suggest.SortBy; -import org.elasticsearch.search.suggest.SuggestionBuilder; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.DirectSpellcheckerSettings; +import org.opensearch.search.suggest.SortBy; +import org.opensearch.search.suggest.SuggestionBuilder; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; import java.io.IOException; import java.util.Locale; import java.util.Objects; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_ACCURACY; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_EDITS; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_INSPECTIONS; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_TERM_FREQ; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MIN_DOC_FREQ; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MIN_WORD_LENGTH; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_PREFIX_LENGTH; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.ACCURACY_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MAX_EDITS_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MAX_INSPECTIONS_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MAX_TERM_FREQ_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MIN_DOC_FREQ_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MIN_WORD_LENGTH_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.PREFIX_LENGTH_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.SORT_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.STRING_DISTANCE_FIELD; -import static org.elasticsearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.SUGGESTMODE_FIELD; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_ACCURACY; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_EDITS; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_INSPECTIONS; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_TERM_FREQ; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MIN_DOC_FREQ; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MIN_WORD_LENGTH; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_PREFIX_LENGTH; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.ACCURACY_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MAX_EDITS_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MAX_INSPECTIONS_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MAX_TERM_FREQ_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MIN_DOC_FREQ_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.MIN_WORD_LENGTH_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.PREFIX_LENGTH_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.SORT_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.STRING_DISTANCE_FIELD; +import static org.opensearch.search.suggest.phrase.DirectCandidateGeneratorBuilder.SUGGESTMODE_FIELD; /** * Defines the actual suggest command. Each command uses the global options diff --git a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestionContext.java b/server/src/main/java/org/opensearch/search/suggest/term/TermSuggestionContext.java similarity index 87% rename from server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestionContext.java rename to server/src/main/java/org/opensearch/search/suggest/term/TermSuggestionContext.java index 19ad03e1b47..93cd5fdc3d6 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestionContext.java +++ b/server/src/main/java/org/opensearch/search/suggest/term/TermSuggestionContext.java @@ -16,11 +16,11 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; import org.elasticsearch.index.query.QueryShardContext; -import org.elasticsearch.search.suggest.DirectSpellcheckerSettings; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.DirectSpellcheckerSettings; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; final class TermSuggestionContext extends SuggestionContext { diff --git a/server/src/main/java/org/elasticsearch/search/suggest/term/package-info.java b/server/src/main/java/org/opensearch/search/suggest/term/package-info.java similarity index 95% rename from server/src/main/java/org/elasticsearch/search/suggest/term/package-info.java rename to server/src/main/java/org/opensearch/search/suggest/term/package-info.java index fb568d405e8..90c25d460aa 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/term/package-info.java +++ b/server/src/main/java/org/opensearch/search/suggest/term/package-info.java @@ -20,4 +20,4 @@ /** * Suggests alternate queries by breaking the query into terms and suggesting more popular terms. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; diff --git a/server/src/test/java/org/elasticsearch/index/IndexModuleTests.java b/server/src/test/java/org/elasticsearch/index/IndexModuleTests.java index e1aece39311..baf92dec73d 100644 --- a/server/src/test/java/org/elasticsearch/index/IndexModuleTests.java +++ b/server/src/test/java/org/elasticsearch/index/IndexModuleTests.java @@ -85,7 +85,7 @@ import org.elasticsearch.indices.mapper.MapperRegistry; import org.elasticsearch.indices.recovery.RecoveryState; import org.elasticsearch.plugins.IndexStorePlugin; import org.opensearch.script.ScriptService; -import org.elasticsearch.search.internal.ReaderContext; +import org.opensearch.search.internal.ReaderContext; import org.elasticsearch.test.ClusterServiceUtils; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.IndexSettingsModule; diff --git a/server/src/test/java/org/elasticsearch/index/SearchSlowLogTests.java b/server/src/test/java/org/elasticsearch/index/SearchSlowLogTests.java index 8240f0f24c5..685c3b74299 100644 --- a/server/src/test/java/org/elasticsearch/index/SearchSlowLogTests.java +++ b/server/src/test/java/org/elasticsearch/index/SearchSlowLogTests.java @@ -34,8 +34,8 @@ import org.elasticsearch.common.util.BigArrays; import org.elasticsearch.index.query.QueryBuilders; import org.elasticsearch.index.shard.ShardId; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.tasks.Task; import org.elasticsearch.test.ESSingleNodeTestCase; import org.elasticsearch.test.TestSearchContext; diff --git a/server/src/test/java/org/elasticsearch/index/engine/CompletionStatsCacheTests.java b/server/src/test/java/org/elasticsearch/index/engine/CompletionStatsCacheTests.java index 12bca18a1f8..02e4021b115 100644 --- a/server/src/test/java/org/elasticsearch/index/engine/CompletionStatsCacheTests.java +++ b/server/src/test/java/org/elasticsearch/index/engine/CompletionStatsCacheTests.java @@ -31,7 +31,7 @@ import org.apache.lucene.search.suggest.document.SuggestField; import org.apache.lucene.store.Directory; import org.opensearch.OpenSearchException; import org.elasticsearch.core.internal.io.IOUtils; -import org.elasticsearch.search.suggest.completion.CompletionStats; +import org.opensearch.search.suggest.completion.CompletionStats; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/index/query/InnerHitBuilderTests.java b/server/src/test/java/org/elasticsearch/index/query/InnerHitBuilderTests.java index 6dfd38ca195..b4bc0091b5f 100644 --- a/server/src/test/java/org/elasticsearch/index/query/InnerHitBuilderTests.java +++ b/server/src/test/java/org/elasticsearch/index/query/InnerHitBuilderTests.java @@ -32,10 +32,10 @@ import org.opensearch.script.Script; import org.opensearch.script.ScriptType; import org.elasticsearch.search.SearchModule; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.fetch.subphase.FieldAndFormat; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilderTests; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FieldAndFormat; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilderTests; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.search.sort.SortBuilder; import org.opensearch.search.sort.SortBuilders; import org.opensearch.search.sort.SortOrder; diff --git a/server/src/test/java/org/elasticsearch/index/query/NestedQueryBuilderTests.java b/server/src/test/java/org/elasticsearch/index/query/NestedQueryBuilderTests.java index 3671a6acb23..e7f4cb3fd1d 100644 --- a/server/src/test/java/org/elasticsearch/index/query/NestedQueryBuilderTests.java +++ b/server/src/test/java/org/elasticsearch/index/query/NestedQueryBuilderTests.java @@ -34,8 +34,8 @@ import org.elasticsearch.index.IndexSettings; import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder; import org.elasticsearch.index.search.ESToParentBlockJoinQuery; -import org.elasticsearch.search.fetch.subphase.InnerHitsContext; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.fetch.subphase.InnerHitsContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.sort.FieldSortBuilder; import org.opensearch.search.sort.SortOrder; import org.elasticsearch.test.AbstractQueryTestCase; diff --git a/server/src/test/java/org/elasticsearch/index/shard/SearchOperationListenerTests.java b/server/src/test/java/org/elasticsearch/index/shard/SearchOperationListenerTests.java index df77f9f8f84..1f356dc56e5 100644 --- a/server/src/test/java/org/elasticsearch/index/shard/SearchOperationListenerTests.java +++ b/server/src/test/java/org/elasticsearch/index/shard/SearchOperationListenerTests.java @@ -18,8 +18,8 @@ */ package org.elasticsearch.index.shard; -import org.elasticsearch.search.internal.ReaderContext; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.ReaderContext; +import org.opensearch.search.internal.SearchContext; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.TestSearchContext; import org.opensearch.transport.TransportRequest; diff --git a/server/src/test/java/org/elasticsearch/index/shard/ShardGetServiceTests.java b/server/src/test/java/org/elasticsearch/index/shard/ShardGetServiceTests.java index 05143852bd9..b73fe87562d 100644 --- a/server/src/test/java/org/elasticsearch/index/shard/ShardGetServiceTests.java +++ b/server/src/test/java/org/elasticsearch/index/shard/ShardGetServiceTests.java @@ -27,7 +27,7 @@ import org.elasticsearch.index.engine.Engine; import org.elasticsearch.index.engine.VersionConflictEngineException; import org.elasticsearch.index.get.GetResult; import org.elasticsearch.index.mapper.RoutingFieldMapper; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; import java.io.IOException; import java.nio.charset.StandardCharsets; diff --git a/server/src/test/java/org/elasticsearch/index/suggest/stats/CompletionsStatsTests.java b/server/src/test/java/org/elasticsearch/index/suggest/stats/CompletionsStatsTests.java index e864588c6c1..0d7bb0ffca2 100644 --- a/server/src/test/java/org/elasticsearch/index/suggest/stats/CompletionsStatsTests.java +++ b/server/src/test/java/org/elasticsearch/index/suggest/stats/CompletionsStatsTests.java @@ -22,7 +22,7 @@ import org.opensearch.common.FieldMemoryStats; import org.elasticsearch.common.FieldMemoryStatsTests; import org.elasticsearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.common.io.stream.StreamInput; -import org.elasticsearch.search.suggest.completion.CompletionStats; +import org.opensearch.search.suggest.completion.CompletionStats; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/plugins/spi/NamedXContentProviderTests.java b/server/src/test/java/org/elasticsearch/plugins/spi/NamedXContentProviderTests.java index 3b63d88f392..0456f92f337 100644 --- a/server/src/test/java/org/elasticsearch/plugins/spi/NamedXContentProviderTests.java +++ b/server/src/test/java/org/elasticsearch/plugins/spi/NamedXContentProviderTests.java @@ -24,8 +24,8 @@ import org.elasticsearch.common.io.Streams; import org.elasticsearch.common.xcontent.NamedXContentRegistry; import org.elasticsearch.search.aggregations.Aggregation; import org.elasticsearch.search.aggregations.pipeline.ParsedSimpleValue; -import org.elasticsearch.search.suggest.Suggest; -import org.elasticsearch.search.suggest.term.TermSuggestion; +import org.opensearch.search.suggest.Suggest; +import org.opensearch.search.suggest.term.TermSuggestion; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/AbstractSearchTestCase.java b/server/src/test/java/org/elasticsearch/search/AbstractSearchTestCase.java index 5e63279f304..e387e800375 100644 --- a/server/src/test/java/org/elasticsearch/search/AbstractSearchTestCase.java +++ b/server/src/test/java/org/elasticsearch/search/AbstractSearchTestCase.java @@ -34,9 +34,9 @@ import org.elasticsearch.plugins.Plugin; import org.elasticsearch.plugins.SearchPlugin; import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.collapse.CollapseBuilderTests; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilderTests; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilderTests; import org.opensearch.search.rescore.QueryRescorerBuilderTests; -import org.elasticsearch.search.suggest.SuggestBuilderTests; +import org.opensearch.search.suggest.SuggestBuilderTests; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/DefaultSearchContextTests.java b/server/src/test/java/org/elasticsearch/search/DefaultSearchContextTests.java index 6418b642e7b..6deb07a43cd 100644 --- a/server/src/test/java/org/elasticsearch/search/DefaultSearchContextTests.java +++ b/server/src/test/java/org/elasticsearch/search/DefaultSearchContextTests.java @@ -50,11 +50,11 @@ import org.elasticsearch.index.query.QueryShardContext; import org.elasticsearch.index.shard.IndexShard; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.indices.breaker.NoneCircuitBreakerService; -import org.elasticsearch.search.internal.AliasFilter; -import org.elasticsearch.search.internal.LegacyReaderContext; -import org.elasticsearch.search.internal.ReaderContext; -import org.elasticsearch.search.internal.ShardSearchContextId; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.AliasFilter; +import org.opensearch.search.internal.LegacyReaderContext; +import org.opensearch.search.internal.ReaderContext; +import org.opensearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.search.rescore.RescoreContext; import org.opensearch.search.slice.SliceBuilder; import org.opensearch.search.sort.SortAndFormats; diff --git a/server/src/test/java/org/elasticsearch/search/SearchCancellationTests.java b/server/src/test/java/org/elasticsearch/search/SearchCancellationTests.java index 36521081f71..5d6a4c1134d 100644 --- a/server/src/test/java/org/elasticsearch/search/SearchCancellationTests.java +++ b/server/src/test/java/org/elasticsearch/search/SearchCancellationTests.java @@ -36,7 +36,7 @@ import org.apache.lucene.util.TestUtil; import org.apache.lucene.util.automaton.CompiledAutomaton; import org.apache.lucene.util.automaton.RegExp; import org.elasticsearch.core.internal.io.IOUtils; -import org.elasticsearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.internal.ContextIndexSearcher; import org.opensearch.tasks.TaskCancelledException; import org.elasticsearch.test.ESTestCase; import org.junit.AfterClass; diff --git a/server/src/test/java/org/elasticsearch/search/SearchHitTests.java b/server/src/test/java/org/elasticsearch/search/SearchHitTests.java index 13c31fcd415..a393ee6a749 100644 --- a/server/src/test/java/org/elasticsearch/search/SearchHitTests.java +++ b/server/src/test/java/org/elasticsearch/search/SearchHitTests.java @@ -38,8 +38,8 @@ import org.elasticsearch.index.Index; import org.elasticsearch.index.get.GetResultTests; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.search.SearchHit.NestedIdentity; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightField; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightFieldTests; +import org.opensearch.search.fetch.subphase.highlight.HighlightField; +import org.opensearch.search.fetch.subphase.highlight.HighlightFieldTests; import org.elasticsearch.test.AbstractWireSerializingTestCase; import org.elasticsearch.test.RandomObjects; import org.elasticsearch.test.VersionUtils; diff --git a/server/src/test/java/org/elasticsearch/search/SearchModuleTests.java b/server/src/test/java/org/elasticsearch/search/SearchModuleTests.java index be9189edfb9..01862e80d01 100644 --- a/server/src/test/java/org/elasticsearch/search/SearchModuleTests.java +++ b/server/src/test/java/org/elasticsearch/search/SearchModuleTests.java @@ -54,25 +54,25 @@ import org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFacto import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; import org.elasticsearch.search.aggregations.support.ValuesSourceType; -import org.elasticsearch.search.fetch.FetchSubPhase; -import org.elasticsearch.search.fetch.subphase.ExplainPhase; -import org.elasticsearch.search.fetch.subphase.highlight.CustomHighlighter; -import org.elasticsearch.search.fetch.subphase.highlight.FastVectorHighlighter; -import org.elasticsearch.search.fetch.subphase.highlight.Highlighter; -import org.elasticsearch.search.fetch.subphase.highlight.PlainHighlighter; -import org.elasticsearch.search.fetch.subphase.highlight.UnifiedHighlighter; +import org.opensearch.search.fetch.FetchSubPhase; +import org.opensearch.search.fetch.subphase.ExplainPhase; +import org.opensearch.search.fetch.subphase.highlight.CustomHighlighter; +import org.opensearch.search.fetch.subphase.highlight.FastVectorHighlighter; +import org.opensearch.search.fetch.subphase.highlight.Highlighter; +import org.opensearch.search.fetch.subphase.highlight.PlainHighlighter; +import org.opensearch.search.fetch.subphase.highlight.UnifiedHighlighter; import org.opensearch.search.rescore.QueryRescorerBuilder; import org.opensearch.search.rescore.RescoreContext; import org.opensearch.search.rescore.RescorerBuilder; -import org.elasticsearch.search.suggest.Suggest.Suggestion; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; -import org.elasticsearch.search.suggest.Suggester; -import org.elasticsearch.search.suggest.SuggestionBuilder; -import org.elasticsearch.search.suggest.SuggestionSearchContext; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; -import org.elasticsearch.search.suggest.term.TermSuggestion; -import org.elasticsearch.search.suggest.term.TermSuggestionBuilder; +import org.opensearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.Suggester; +import org.opensearch.search.suggest.SuggestionBuilder; +import org.opensearch.search.suggest.SuggestionSearchContext; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.term.TermSuggestion; +import org.opensearch.search.suggest.term.TermSuggestionBuilder; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/SearchServiceTests.java b/server/src/test/java/org/elasticsearch/search/SearchServiceTests.java index 15bb55d26df..db57d0bf3b3 100644 --- a/server/src/test/java/org/elasticsearch/search/SearchServiceTests.java +++ b/server/src/test/java/org/elasticsearch/search/SearchServiceTests.java @@ -77,15 +77,15 @@ import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuil import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder; import org.elasticsearch.search.aggregations.support.ValueType; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.fetch.FetchSearchResult; -import org.elasticsearch.search.fetch.ShardFetchRequest; -import org.elasticsearch.search.internal.AliasFilter; -import org.elasticsearch.search.internal.ReaderContext; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.internal.ShardSearchContextId; -import org.elasticsearch.search.internal.ShardSearchRequest; -import org.elasticsearch.search.query.QuerySearchResult; -import org.elasticsearch.search.suggest.SuggestBuilder; +import org.opensearch.search.fetch.FetchSearchResult; +import org.opensearch.search.fetch.ShardFetchRequest; +import org.opensearch.search.internal.AliasFilter; +import org.opensearch.search.internal.ReaderContext; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchRequest; +import org.opensearch.search.query.QuerySearchResult; +import org.opensearch.search.suggest.SuggestBuilder; import org.elasticsearch.test.ESSingleNodeTestCase; import org.opensearch.threadpool.ThreadPool; import org.junit.Before; diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/AggregationCollectorTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/AggregationCollectorTests.java index 254b9a2b2f7..403ac0d5be2 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/AggregationCollectorTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/AggregationCollectorTests.java @@ -22,7 +22,7 @@ package org.elasticsearch.search.aggregations; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.json.JsonXContent; import org.elasticsearch.index.IndexService; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.elasticsearch.test.ESSingleNodeTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/AggregatorBaseTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/AggregatorBaseTests.java index e2c13cc7b8a..b55fec85eae 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/AggregatorBaseTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/AggregatorBaseTests.java @@ -36,7 +36,7 @@ import org.elasticsearch.index.mapper.NumberFieldMapper; import org.elasticsearch.index.query.QueryShardContext; import org.elasticsearch.indices.breaker.CircuitBreakerService; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.elasticsearch.test.ESSingleNodeTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java index 040c98d487f..7c636f26d40 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java @@ -37,7 +37,7 @@ import org.apache.lucene.store.Directory; import org.elasticsearch.search.aggregations.AggregatorTestCase; import org.elasticsearch.search.aggregations.BucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollector; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Collections; diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregatorTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregatorTests.java index 0453128faf2..1b13d0c4bf8 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregatorTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregatorTests.java @@ -35,7 +35,7 @@ import org.elasticsearch.search.aggregations.AggregatorTestCase; import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.search.aggregations.MultiBucketConsumerService; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java index 356e99d91c3..7c015d3b10b 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java @@ -33,7 +33,7 @@ import org.opensearch.common.CheckedBiConsumer; import org.elasticsearch.search.aggregations.AggregatorTestCase; import org.elasticsearch.search.aggregations.BucketCollector; import org.elasticsearch.search.aggregations.LeafBucketCollector; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java index 08b3f42aa8f..2185e992559 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java @@ -28,7 +28,7 @@ import org.elasticsearch.index.query.QueryShardContext; import org.elasticsearch.index.shard.IndexShard; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.AggregatorFactory; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.TestSearchContext; @@ -80,7 +80,7 @@ public class AdjacencyMatrixAggregationBuilderTests extends ESTestCase { AggregatorFactory factory = aggregationBuilder.doBuild(context.getQueryShardContext(), null, new AggregatorFactories.Builder()); assertThat(factory instanceof AdjacencyMatrixAggregatorFactory, is(true)); assertThat(factory.name(), equalTo("dummy")); - assertWarnings("[index.max_adjacency_matrix_filters] setting was deprecated in Elasticsearch and will be " + assertWarnings("[index.max_adjacency_matrix_filters] setting was deprecated in OpenSearch and will be " + "removed in a future release! See the breaking changes documentation for the next major version."); } } diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregatorTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregatorTests.java index 18729bf45d2..733dcf440ef 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregatorTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/metrics/ScriptedMetricAggregatorTests.java @@ -53,7 +53,7 @@ import org.elasticsearch.search.aggregations.AggregatorTestCase; import org.elasticsearch.search.aggregations.MultiBucketConsumerService.MultiBucketConsumer; import org.elasticsearch.search.aggregations.bucket.terms.StringTerms; import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.junit.Before; import org.junit.BeforeClass; diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/metrics/TopHitsTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/metrics/TopHitsTests.java index c158c05a10c..297da019f35 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/metrics/TopHitsTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/metrics/TopHitsTests.java @@ -24,8 +24,8 @@ import org.elasticsearch.common.xcontent.json.JsonXContent; import org.elasticsearch.search.aggregations.AggregationInitializationException; import org.elasticsearch.search.aggregations.AggregatorFactories; import org.elasticsearch.search.aggregations.BaseAggregationTestCase; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilderTests; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilderTests; import org.opensearch.search.sort.ScriptSortBuilder.ScriptSortType; import org.opensearch.search.sort.SortBuilders; import org.opensearch.search.sort.SortOrder; diff --git a/server/src/test/java/org/elasticsearch/search/fetch/FetchPhaseTests.java b/server/src/test/java/org/opensearch/search/fetch/FetchPhaseTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/fetch/FetchPhaseTests.java rename to server/src/test/java/org/opensearch/search/fetch/FetchPhaseTests.java index feeef50f306..a64b68f1771 100644 --- a/server/src/test/java/org/elasticsearch/search/fetch/FetchPhaseTests.java +++ b/server/src/test/java/org/opensearch/search/fetch/FetchPhaseTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.fetch; +package org.opensearch.search.fetch; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/search/fetch/subphase/FetchSourcePhaseTests.java b/server/src/test/java/org/opensearch/search/fetch/subphase/FetchSourcePhaseTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/fetch/subphase/FetchSourcePhaseTests.java rename to server/src/test/java/org/opensearch/search/fetch/subphase/FetchSourcePhaseTests.java index 49b749654d1..8ca2c04dc81 100644 --- a/server/src/test/java/org/elasticsearch/search/fetch/subphase/FetchSourcePhaseTests.java +++ b/server/src/test/java/org/opensearch/search/fetch/subphase/FetchSourcePhaseTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.fetch.subphase; +package org.opensearch.search.fetch.subphase; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.index.memory.MemoryIndex; @@ -26,9 +26,9 @@ import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.search.SearchHit; -import org.elasticsearch.search.fetch.FetchContext; -import org.elasticsearch.search.fetch.FetchSubPhase.HitContext; -import org.elasticsearch.search.fetch.FetchSubPhaseProcessor; +import org.opensearch.search.fetch.FetchContext; +import org.opensearch.search.fetch.FetchSubPhase.HitContext; +import org.opensearch.search.fetch.FetchSubPhaseProcessor; import org.opensearch.search.lookup.SourceLookup; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/search/fetch/subphase/FieldFetcherTests.java b/server/src/test/java/org/opensearch/search/fetch/subphase/FieldFetcherTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/fetch/subphase/FieldFetcherTests.java rename to server/src/test/java/org/opensearch/search/fetch/subphase/FieldFetcherTests.java index 6c19383c54b..1e223fd73a1 100644 --- a/server/src/test/java/org/elasticsearch/search/fetch/subphase/FieldFetcherTests.java +++ b/server/src/test/java/org/opensearch/search/fetch/subphase/FieldFetcherTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.fetch.subphase; +package org.opensearch.search.fetch.subphase; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.document.DocumentField; diff --git a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/CustomHighlighter.java b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/CustomHighlighter.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/CustomHighlighter.java rename to server/src/test/java/org/opensearch/search/fetch/subphase/highlight/CustomHighlighter.java index 734c5c8dc1f..d4be1c8f72e 100644 --- a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/CustomHighlighter.java +++ b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/CustomHighlighter.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.fetch.subphase.highlight; +package org.opensearch.search.fetch.subphase.highlight; import org.elasticsearch.common.text.Text; import org.elasticsearch.index.mapper.MappedFieldType; diff --git a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/CustomHighlighterPlugin.java b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/CustomHighlighterPlugin.java similarity index 90% rename from server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/CustomHighlighterPlugin.java rename to server/src/test/java/org/opensearch/search/fetch/subphase/highlight/CustomHighlighterPlugin.java index b234d7236e1..e4ce8580554 100644 --- a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/CustomHighlighterPlugin.java +++ b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/CustomHighlighterPlugin.java @@ -17,11 +17,11 @@ * under the License. */ -package org.elasticsearch.search.fetch.subphase.highlight; +package org.opensearch.search.fetch.subphase.highlight; import org.elasticsearch.plugins.Plugin; import org.elasticsearch.plugins.SearchPlugin; -import org.elasticsearch.search.fetch.subphase.highlight.Highlighter; +import org.opensearch.search.fetch.subphase.highlight.Highlighter; import java.util.Map; diff --git a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightBuilderTests.java b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/HighlightBuilderTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightBuilderTests.java rename to server/src/test/java/org/opensearch/search/fetch/subphase/highlight/HighlightBuilderTests.java index 3623dc2cbd7..03913b4c32d 100644 --- a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/HighlightBuilderTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.fetch.subphase.highlight; +package org.opensearch.search.fetch.subphase.highlight; import org.apache.lucene.search.Query; import org.opensearch.Version; @@ -49,10 +49,10 @@ import org.elasticsearch.index.query.QueryShardContext; import org.elasticsearch.index.query.Rewriteable; import org.elasticsearch.index.query.TermQueryBuilder; import org.elasticsearch.search.SearchModule; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder.BoundaryScannerType; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder.Field; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder.Order; -import org.elasticsearch.search.fetch.subphase.highlight.SearchHighlightContext.FieldOptions; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder.BoundaryScannerType; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder.Field; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder.Order; +import org.opensearch.search.fetch.subphase.highlight.SearchHighlightContext.FieldOptions; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.IndexSettingsModule; import org.junit.AfterClass; diff --git a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightFieldTests.java b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/HighlightFieldTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightFieldTests.java rename to server/src/test/java/org/opensearch/search/fetch/subphase/highlight/HighlightFieldTests.java index 19681551f5d..9952619346c 100644 --- a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightFieldTests.java +++ b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/HighlightFieldTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.fetch.subphase.highlight; +package org.opensearch.search.fetch.subphase.highlight; import org.opensearch.common.Strings; import org.elasticsearch.common.io.stream.BytesStreamOutput; diff --git a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/PlainHighlighterTests.java b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/PlainHighlighterTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/PlainHighlighterTests.java rename to server/src/test/java/org/opensearch/search/fetch/subphase/highlight/PlainHighlighterTests.java index 18ba716f70c..b5c65bad5fd 100644 --- a/server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/PlainHighlighterTests.java +++ b/server/src/test/java/org/opensearch/search/fetch/subphase/highlight/PlainHighlighterTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.fetch.subphase.highlight; +package org.opensearch.search.fetch.subphase.highlight; import org.apache.lucene.analysis.MockAnalyzer; import org.apache.lucene.index.Term; diff --git a/server/src/test/java/org/elasticsearch/search/internal/AliasFilterTests.java b/server/src/test/java/org/opensearch/search/internal/AliasFilterTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/internal/AliasFilterTests.java rename to server/src/test/java/org/opensearch/search/internal/AliasFilterTests.java index ba21a63f683..892079d47bc 100644 --- a/server/src/test/java/org/elasticsearch/search/internal/AliasFilterTests.java +++ b/server/src/test/java/org/opensearch/search/internal/AliasFilterTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.internal; +package org.opensearch.search.internal; import org.elasticsearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.index.query.QueryBuilder; diff --git a/server/src/test/java/org/elasticsearch/search/internal/ContextIndexSearcherTests.java b/server/src/test/java/org/opensearch/search/internal/ContextIndexSearcherTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/internal/ContextIndexSearcherTests.java rename to server/src/test/java/org/opensearch/search/internal/ContextIndexSearcherTests.java index 41db251a790..fcba1c947ab 100644 --- a/server/src/test/java/org/elasticsearch/search/internal/ContextIndexSearcherTests.java +++ b/server/src/test/java/org/opensearch/search/internal/ContextIndexSearcherTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.internal; +package org.opensearch.search.internal; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.codecs.StoredFieldsReader; @@ -77,10 +77,10 @@ import java.util.Collections; import java.util.IdentityHashMap; import java.util.Set; -import static org.elasticsearch.search.internal.ContextIndexSearcher.intersectScorerAndBitSet; -import static org.elasticsearch.search.internal.ExitableDirectoryReader.ExitableLeafReader; -import static org.elasticsearch.search.internal.ExitableDirectoryReader.ExitablePointValues; -import static org.elasticsearch.search.internal.ExitableDirectoryReader.ExitableTerms; +import static org.opensearch.search.internal.ContextIndexSearcher.intersectScorerAndBitSet; +import static org.opensearch.search.internal.ExitableDirectoryReader.ExitableLeafReader; +import static org.opensearch.search.internal.ExitableDirectoryReader.ExitablePointValues; +import static org.opensearch.search.internal.ExitableDirectoryReader.ExitableTerms; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.instanceOf; diff --git a/server/src/test/java/org/elasticsearch/search/internal/ShardSearchRequestTests.java b/server/src/test/java/org/opensearch/search/internal/ShardSearchRequestTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/internal/ShardSearchRequestTests.java rename to server/src/test/java/org/opensearch/search/internal/ShardSearchRequestTests.java index 651bb2a5943..df4005eba3b 100644 --- a/server/src/test/java/org/elasticsearch/search/internal/ShardSearchRequestTests.java +++ b/server/src/test/java/org/opensearch/search/internal/ShardSearchRequestTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.internal; +package org.opensearch.search.internal; import org.opensearch.Version; import org.opensearch.action.OriginalIndices; diff --git a/server/src/test/java/org/elasticsearch/search/profile/ProfileResultTests.java b/server/src/test/java/org/opensearch/search/profile/ProfileResultTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/profile/ProfileResultTests.java rename to server/src/test/java/org/opensearch/search/profile/ProfileResultTests.java index e8145e0dc8b..efd3d4a8a25 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/ProfileResultTests.java +++ b/server/src/test/java/org/opensearch/search/profile/ProfileResultTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile; +package org.opensearch.search.profile; import org.opensearch.common.Strings; import org.opensearch.common.bytes.BytesReference; diff --git a/server/src/test/java/org/elasticsearch/search/profile/SearchProfileShardResultsTests.java b/server/src/test/java/org/opensearch/search/profile/SearchProfileShardResultsTests.java similarity index 93% rename from server/src/test/java/org/elasticsearch/search/profile/SearchProfileShardResultsTests.java rename to server/src/test/java/org/opensearch/search/profile/SearchProfileShardResultsTests.java index e08893a3b9e..c1e7eb93d8b 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/SearchProfileShardResultsTests.java +++ b/server/src/test/java/org/opensearch/search/profile/SearchProfileShardResultsTests.java @@ -17,16 +17,16 @@ * under the License. */ -package org.elasticsearch.search.profile; +package org.opensearch.search.profile; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.search.profile.aggregation.AggregationProfileShardResult; -import org.elasticsearch.search.profile.aggregation.AggregationProfileShardResultTests; -import org.elasticsearch.search.profile.query.QueryProfileShardResult; -import org.elasticsearch.search.profile.query.QueryProfileShardResultTests; +import org.opensearch.search.profile.aggregation.AggregationProfileShardResult; +import org.opensearch.search.profile.aggregation.AggregationProfileShardResultTests; +import org.opensearch.search.profile.query.QueryProfileShardResult; +import org.opensearch.search.profile.query.QueryProfileShardResultTests; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/profile/TimerTests.java b/server/src/test/java/org/opensearch/search/profile/TimerTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/profile/TimerTests.java rename to server/src/test/java/org/opensearch/search/profile/TimerTests.java index fc1bd76f39e..1f73b33f8c7 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/TimerTests.java +++ b/server/src/test/java/org/opensearch/search/profile/TimerTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile; +package org.opensearch.search.profile; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/search/profile/aggregation/AggregationProfileShardResultTests.java b/server/src/test/java/org/opensearch/search/profile/aggregation/AggregationProfileShardResultTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/search/profile/aggregation/AggregationProfileShardResultTests.java rename to server/src/test/java/org/opensearch/search/profile/aggregation/AggregationProfileShardResultTests.java index 8e10dc223ec..669ac1a7f32 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/aggregation/AggregationProfileShardResultTests.java +++ b/server/src/test/java/org/opensearch/search/profile/aggregation/AggregationProfileShardResultTests.java @@ -17,15 +17,15 @@ * under the License. */ -package org.elasticsearch.search.profile.aggregation; +package org.opensearch.search.profile.aggregation; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentParserUtils; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.search.profile.ProfileResult; -import org.elasticsearch.search.profile.ProfileResultTests; +import org.opensearch.search.profile.ProfileResult; +import org.opensearch.search.profile.ProfileResultTests; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/profile/query/CollectorResultTests.java b/server/src/test/java/org/opensearch/search/profile/query/CollectorResultTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/profile/query/CollectorResultTests.java rename to server/src/test/java/org/opensearch/search/profile/query/CollectorResultTests.java index f783a3eab4a..97ad33e35c0 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/query/CollectorResultTests.java +++ b/server/src/test/java/org/opensearch/search/profile/query/CollectorResultTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.opensearch.common.Strings; import org.opensearch.common.bytes.BytesReference; diff --git a/server/src/test/java/org/elasticsearch/search/profile/query/ProfileScorerTests.java b/server/src/test/java/org/opensearch/search/profile/query/ProfileScorerTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/profile/query/ProfileScorerTests.java rename to server/src/test/java/org/opensearch/search/profile/query/ProfileScorerTests.java index fd72bdfa6de..c8e0d4d373e 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/query/ProfileScorerTests.java +++ b/server/src/test/java/org/opensearch/search/profile/query/ProfileScorerTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.index.MultiReader; import org.apache.lucene.search.DocIdSetIterator; @@ -60,7 +60,7 @@ public class ProfileScorerTests extends ESTestCase { public int docID() { throw new UnsupportedOperationException(); } - + @Override public void setMinCompetitiveScore(float minScore) { this.minCompetitiveScore = minScore; diff --git a/server/src/test/java/org/elasticsearch/search/profile/query/QueryProfileShardResultTests.java b/server/src/test/java/org/opensearch/search/profile/query/QueryProfileShardResultTests.java similarity index 94% rename from server/src/test/java/org/elasticsearch/search/profile/query/QueryProfileShardResultTests.java rename to server/src/test/java/org/opensearch/search/profile/query/QueryProfileShardResultTests.java index 769f773cd26..27bd58fa59a 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/query/QueryProfileShardResultTests.java +++ b/server/src/test/java/org/opensearch/search/profile/query/QueryProfileShardResultTests.java @@ -17,15 +17,15 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentParserUtils; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.search.profile.ProfileResult; -import org.elasticsearch.search.profile.ProfileResultTests; +import org.opensearch.search.profile.ProfileResult; +import org.opensearch.search.profile.ProfileResultTests; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/profile/query/QueryProfilerTests.java b/server/src/test/java/org/opensearch/search/profile/query/QueryProfilerTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/profile/query/QueryProfilerTests.java rename to server/src/test/java/org/opensearch/search/profile/query/QueryProfilerTests.java index 65d4c889d14..ec22630243d 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/query/QueryProfilerTests.java +++ b/server/src/test/java/org/opensearch/search/profile/query/QueryProfilerTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field.Store; @@ -45,8 +45,8 @@ import org.apache.lucene.search.Weight; import org.apache.lucene.store.Directory; import org.apache.lucene.util.TestUtil; import org.elasticsearch.core.internal.io.IOUtils; -import org.elasticsearch.search.internal.ContextIndexSearcher; -import org.elasticsearch.search.profile.ProfileResult; +import org.opensearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.profile.ProfileResult; import org.elasticsearch.test.ESTestCase; import org.junit.After; import org.junit.AfterClass; diff --git a/server/src/test/java/org/elasticsearch/search/profile/query/RandomQueryGenerator.java b/server/src/test/java/org/opensearch/search/profile/query/RandomQueryGenerator.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/profile/query/RandomQueryGenerator.java rename to server/src/test/java/org/opensearch/search/profile/query/RandomQueryGenerator.java index ea9ef964153..18ba5d07113 100644 --- a/server/src/test/java/org/elasticsearch/search/profile/query/RandomQueryGenerator.java +++ b/server/src/test/java/org/opensearch/search/profile/query/RandomQueryGenerator.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.profile.query; +package org.opensearch.search.profile.query; import org.apache.lucene.util.English; import org.elasticsearch.common.unit.Fuzziness; diff --git a/server/src/test/java/org/elasticsearch/search/query/QueryPhaseTests.java b/server/src/test/java/org/opensearch/search/query/QueryPhaseTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/query/QueryPhaseTests.java rename to server/src/test/java/org/opensearch/search/query/QueryPhaseTests.java index 49854cda8d7..738642596af 100644 --- a/server/src/test/java/org/elasticsearch/search/query/QueryPhaseTests.java +++ b/server/src/test/java/org/opensearch/search/query/QueryPhaseTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; @@ -89,9 +89,9 @@ import org.elasticsearch.index.search.ESToParentBlockJoinQuery; import org.elasticsearch.index.shard.IndexShard; import org.elasticsearch.index.shard.IndexShardTestCase; import org.elasticsearch.search.DocValueFormat; -import org.elasticsearch.search.internal.ContextIndexSearcher; -import org.elasticsearch.search.internal.ScrollContext; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.internal.ScrollContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.sort.SortAndFormats; import org.opensearch.tasks.TaskCancelledException; import org.elasticsearch.test.TestSearchContext; @@ -101,8 +101,8 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import static org.elasticsearch.search.query.QueryPhase.pointsHaveDuplicateData; -import static org.elasticsearch.search.query.TopDocsCollectorContext.hasInfMaxScore; +import static org.opensearch.search.query.QueryPhase.pointsHaveDuplicateData; +import static org.opensearch.search.query.TopDocsCollectorContext.hasInfMaxScore; import static org.hamcrest.Matchers.anyOf; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.greaterThanOrEqualTo; diff --git a/server/src/test/java/org/elasticsearch/search/query/QuerySearchResultTests.java b/server/src/test/java/org/opensearch/search/query/QuerySearchResultTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/search/query/QuerySearchResultTests.java rename to server/src/test/java/org/opensearch/search/query/QuerySearchResultTests.java index c9efe7dde43..08a81077be0 100644 --- a/server/src/test/java/org/elasticsearch/search/query/QuerySearchResultTests.java +++ b/server/src/test/java/org/opensearch/search/query/QuerySearchResultTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.apache.lucene.search.ScoreDoc; import org.apache.lucene.search.TopDocs; @@ -40,10 +40,10 @@ import org.elasticsearch.search.SearchShardTarget; import org.elasticsearch.search.aggregations.Aggregations; import org.elasticsearch.search.aggregations.InternalAggregations; import org.elasticsearch.search.aggregations.InternalAggregationsTests; -import org.elasticsearch.search.internal.AliasFilter; -import org.elasticsearch.search.internal.ShardSearchContextId; -import org.elasticsearch.search.internal.ShardSearchRequest; -import org.elasticsearch.search.suggest.SuggestTests; +import org.opensearch.search.internal.AliasFilter; +import org.opensearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchRequest; +import org.opensearch.search.suggest.SuggestTests; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/query/ScriptScoreQueryTests.java b/server/src/test/java/org/opensearch/search/query/ScriptScoreQueryTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/query/ScriptScoreQueryTests.java rename to server/src/test/java/org/opensearch/search/query/ScriptScoreQueryTests.java index e27ebf3caad..cdf96b2f961 100644 --- a/server/src/test/java/org/elasticsearch/search/query/ScriptScoreQueryTests.java +++ b/server/src/test/java/org/opensearch/search/query/ScriptScoreQueryTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.query; +package org.opensearch.search.query; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; diff --git a/server/src/test/java/org/opensearch/search/slice/SliceBuilderTests.java b/server/src/test/java/org/opensearch/search/slice/SliceBuilderTests.java index 591c917f1a1..420f9a74954 100644 --- a/server/src/test/java/org/opensearch/search/slice/SliceBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/slice/SliceBuilderTests.java @@ -57,7 +57,7 @@ import org.elasticsearch.index.mapper.TextSearchInfo; import org.elasticsearch.index.mapper.ValueFetcher; import org.elasticsearch.index.query.QueryShardContext; import org.elasticsearch.index.shard.ShardId; -import org.elasticsearch.search.internal.ShardSearchRequest; +import org.opensearch.search.internal.ShardSearchRequest; import org.opensearch.search.lookup.SearchLookup; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/AbstractSuggestionBuilderTestCase.java b/server/src/test/java/org/opensearch/search/suggest/AbstractSuggestionBuilderTestCase.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/suggest/AbstractSuggestionBuilderTestCase.java rename to server/src/test/java/org/opensearch/search/suggest/AbstractSuggestionBuilderTestCase.java index af59ed0c663..0b96a4106bb 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/AbstractSuggestionBuilderTestCase.java +++ b/server/src/test/java/org/opensearch/search/suggest/AbstractSuggestionBuilderTestCase.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.apache.lucene.analysis.core.SimpleAnalyzer; import org.opensearch.Version; @@ -45,7 +45,7 @@ import org.elasticsearch.ingest.TestTemplateService; import org.opensearch.script.Script; import org.opensearch.script.ScriptService; import org.elasticsearch.search.SearchModule; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.IndexSettingsModule; import org.junit.AfterClass; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestionOptionTests.java b/server/src/test/java/org/opensearch/search/suggest/CompletionSuggestionOptionTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestionOptionTests.java rename to server/src/test/java/org/opensearch/search/suggest/CompletionSuggestionOptionTests.java index 4dd3f960c32..897aa094b1b 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestionOptionTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/CompletionSuggestionOptionTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.text.Text; @@ -26,8 +26,8 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHitTests; -import org.elasticsearch.search.suggest.completion.CompletionSuggestion; -import org.elasticsearch.search.suggest.completion.CompletionSuggestion.Entry.Option; +import org.opensearch.search.suggest.completion.CompletionSuggestion; +import org.opensearch.search.suggest.completion.CompletionSuggestion.Entry.Option; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/SuggestBuilderTests.java b/server/src/test/java/org/opensearch/search/suggest/SuggestBuilderTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/search/suggest/SuggestBuilderTests.java rename to server/src/test/java/org/opensearch/search/suggest/SuggestBuilderTests.java index 2b99c62185b..32d2525cc43 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/SuggestBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/SuggestBuilderTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; import org.elasticsearch.common.settings.Settings; @@ -28,9 +28,9 @@ import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.search.SearchModule; -import org.elasticsearch.search.suggest.completion.CompletionSuggesterBuilderTests; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilderTests; -import org.elasticsearch.search.suggest.term.TermSuggestionBuilderTests; +import org.opensearch.search.suggest.completion.CompletionSuggesterBuilderTests; +import org.opensearch.search.suggest.phrase.PhraseSuggestionBuilderTests; +import org.opensearch.search.suggest.term.TermSuggestionBuilderTests; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.EqualsHashCodeTestUtils; import org.junit.AfterClass; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/SuggestTests.java b/server/src/test/java/org/opensearch/search/suggest/SuggestTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/search/suggest/SuggestTests.java rename to server/src/test/java/org/opensearch/search/suggest/SuggestTests.java index 7e63180bf77..a01dd84c944 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/SuggestTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/SuggestTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.opensearch.Version; import org.elasticsearch.common.ParseField; @@ -36,12 +36,12 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.opensearch.rest.action.search.RestSearchAction; import org.elasticsearch.search.SearchModule; -import org.elasticsearch.search.suggest.Suggest.Suggestion; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; -import org.elasticsearch.search.suggest.completion.CompletionSuggestion; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestion; -import org.elasticsearch.search.suggest.term.TermSuggestion; +import org.opensearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.completion.CompletionSuggestion; +import org.opensearch.search.suggest.phrase.PhraseSuggestion; +import org.opensearch.search.suggest.term.TermSuggestion; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.VersionUtils; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/SuggestionEntryTests.java b/server/src/test/java/org/opensearch/search/suggest/SuggestionEntryTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/search/suggest/SuggestionEntryTests.java rename to server/src/test/java/org/opensearch/search/suggest/SuggestionEntryTests.java index d298ee688ce..d464f8f054c 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/SuggestionEntryTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/SuggestionEntryTests.java @@ -17,18 +17,18 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.text.Text; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; -import org.elasticsearch.search.suggest.completion.CompletionSuggestion; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestion; -import org.elasticsearch.search.suggest.term.TermSuggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.completion.CompletionSuggestion; +import org.opensearch.search.suggest.phrase.PhraseSuggestion; +import org.opensearch.search.suggest.term.TermSuggestion; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/SuggestionOptionTests.java b/server/src/test/java/org/opensearch/search/suggest/SuggestionOptionTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/search/suggest/SuggestionOptionTests.java rename to server/src/test/java/org/opensearch/search/suggest/SuggestionOptionTests.java index d83cb7e39b8..685429760cd 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/SuggestionOptionTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/SuggestionOptionTests.java @@ -17,15 +17,15 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.text.Text; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.phrase.PhraseSuggestion; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/SuggestionTests.java b/server/src/test/java/org/opensearch/search/suggest/SuggestionTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/suggest/SuggestionTests.java rename to server/src/test/java/org/opensearch/search/suggest/SuggestionTests.java index 61fc54ba13c..54a4a9993bd 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/SuggestionTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/SuggestionTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.text.Text; @@ -30,12 +30,12 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.common.xcontent.json.JsonXContent; import org.opensearch.rest.action.search.RestSearchAction; -import org.elasticsearch.search.suggest.Suggest.Suggestion; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry; -import org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option; -import org.elasticsearch.search.suggest.completion.CompletionSuggestion; -import org.elasticsearch.search.suggest.phrase.PhraseSuggestion; -import org.elasticsearch.search.suggest.term.TermSuggestion; +import org.opensearch.search.suggest.Suggest.Suggestion; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry; +import org.opensearch.search.suggest.Suggest.Suggestion.Entry.Option; +import org.opensearch.search.suggest.completion.CompletionSuggestion; +import org.opensearch.search.suggest.phrase.PhraseSuggestion; +import org.opensearch.search.suggest.term.TermSuggestion; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/TermSuggestionOptionTests.java b/server/src/test/java/org/opensearch/search/suggest/TermSuggestionOptionTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/search/suggest/TermSuggestionOptionTests.java rename to server/src/test/java/org/opensearch/search/suggest/TermSuggestionOptionTests.java index 4c779a256c4..a4f9342daf3 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/TermSuggestionOptionTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/TermSuggestionOptionTests.java @@ -17,14 +17,14 @@ * under the License. */ -package org.elasticsearch.search.suggest; +package org.opensearch.search.suggest; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.text.Text; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.search.suggest.term.TermSuggestion.Entry.Option; +import org.opensearch.search.suggest.term.TermSuggestion.Entry.Option; import org.elasticsearch.test.ESTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/CategoryContextMappingTests.java b/server/src/test/java/org/opensearch/search/suggest/completion/CategoryContextMappingTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/CategoryContextMappingTests.java rename to server/src/test/java/org/opensearch/search/suggest/completion/CategoryContextMappingTests.java index 121dfedcfd2..3a506c919e9 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/CategoryContextMappingTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/CategoryContextMappingTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.document.Field; import org.apache.lucene.document.FieldType; @@ -47,9 +47,9 @@ import org.elasticsearch.index.mapper.ParseContext; import org.elasticsearch.index.mapper.ParsedDocument; import org.elasticsearch.index.mapper.SourceToParse; import org.elasticsearch.index.mapper.TextFieldMapper; -import org.elasticsearch.search.suggest.completion.context.CategoryContextMapping; -import org.elasticsearch.search.suggest.completion.context.ContextBuilder; -import org.elasticsearch.search.suggest.completion.context.ContextMapping; +import org.opensearch.search.suggest.completion.context.CategoryContextMapping; +import org.opensearch.search.suggest.completion.context.ContextBuilder; +import org.opensearch.search.suggest.completion.context.ContextMapping; import org.elasticsearch.test.ESSingleNodeTestCase; import java.util.List; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/CategoryQueryContextTests.java b/server/src/test/java/org/opensearch/search/suggest/completion/CategoryQueryContextTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/CategoryQueryContextTests.java rename to server/src/test/java/org/opensearch/search/suggest/completion/CategoryQueryContextTests.java index 7b0b898e597..2ca806951b2 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/CategoryQueryContextTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/CategoryQueryContextTests.java @@ -17,10 +17,10 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.search.suggest.completion.context.CategoryQueryContext; +import org.opensearch.search.suggest.completion.context.CategoryQueryContext; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggesterBuilderTests.java b/server/src/test/java/org/opensearch/search/suggest/completion/CompletionSuggesterBuilderTests.java similarity index 93% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggesterBuilderTests.java rename to server/src/test/java/org/opensearch/search/suggest/completion/CompletionSuggesterBuilderTests.java index 6197dc1d9b3..d3baa457787 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggesterBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/CompletionSuggesterBuilderTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.analysis.core.SimpleAnalyzer; import org.opensearch.common.bytes.BytesReference; @@ -27,14 +27,14 @@ import org.elasticsearch.index.analysis.AnalyzerScope; import org.elasticsearch.index.analysis.NamedAnalyzer; import org.elasticsearch.index.mapper.CompletionFieldMapper.CompletionFieldType; import org.elasticsearch.index.mapper.MappedFieldType; -import org.elasticsearch.search.suggest.AbstractSuggestionBuilderTestCase; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; -import org.elasticsearch.search.suggest.completion.context.CategoryQueryContext; -import org.elasticsearch.search.suggest.completion.context.ContextBuilder; -import org.elasticsearch.search.suggest.completion.context.ContextMapping; -import org.elasticsearch.search.suggest.completion.context.ContextMapping.InternalQueryContext; -import org.elasticsearch.search.suggest.completion.context.ContextMappings; -import org.elasticsearch.search.suggest.completion.context.GeoQueryContext; +import org.opensearch.search.suggest.AbstractSuggestionBuilderTestCase; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.completion.context.CategoryQueryContext; +import org.opensearch.search.suggest.completion.context.ContextBuilder; +import org.opensearch.search.suggest.completion.context.ContextMapping; +import org.opensearch.search.suggest.completion.context.ContextMapping.InternalQueryContext; +import org.opensearch.search.suggest.completion.context.ContextMappings; +import org.opensearch.search.suggest.completion.context.GeoQueryContext; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java b/server/src/test/java/org/opensearch/search/suggest/completion/CompletionSuggestionTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java rename to server/src/test/java/org/opensearch/search/suggest/completion/CompletionSuggestionTests.java index f5342f7becd..96ef2cf37aa 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/CompletionSuggestionTests.java @@ -17,10 +17,10 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.elasticsearch.common.text.Text; -import org.elasticsearch.search.suggest.Suggest; +import org.opensearch.search.suggest.Suggest; import org.elasticsearch.test.ESTestCase; import java.util.ArrayList; @@ -28,7 +28,7 @@ import java.util.Collections; import java.util.List; import java.util.stream.Collectors; -import static org.elasticsearch.search.suggest.Suggest.COMPARATOR; +import static org.opensearch.search.suggest.Suggest.COMPARATOR; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.greaterThanOrEqualTo; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/FuzzyOptionsTests.java b/server/src/test/java/org/opensearch/search/suggest/completion/FuzzyOptionsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/FuzzyOptionsTests.java rename to server/src/test/java/org/opensearch/search/suggest/completion/FuzzyOptionsTests.java index 4df7b9bf415..846aa75d082 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/FuzzyOptionsTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/FuzzyOptionsTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; import org.elasticsearch.common.unit.Fuzziness; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/GeoContextMappingTests.java b/server/src/test/java/org/opensearch/search/suggest/completion/GeoContextMappingTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/GeoContextMappingTests.java rename to server/src/test/java/org/opensearch/search/suggest/completion/GeoContextMappingTests.java index 13c91c7cddd..4264b6bfff2 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/GeoContextMappingTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/GeoContextMappingTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.apache.lucene.index.IndexableField; import org.opensearch.OpenSearchParseException; @@ -31,9 +31,9 @@ import org.elasticsearch.index.mapper.MappedFieldType; import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.index.mapper.ParsedDocument; import org.elasticsearch.index.mapper.SourceToParse; -import org.elasticsearch.search.suggest.completion.context.ContextBuilder; -import org.elasticsearch.search.suggest.completion.context.ContextMapping; -import org.elasticsearch.search.suggest.completion.context.GeoContextMapping; +import org.opensearch.search.suggest.completion.context.ContextBuilder; +import org.opensearch.search.suggest.completion.context.ContextMapping; +import org.opensearch.search.suggest.completion.context.GeoContextMapping; import org.elasticsearch.test.ESSingleNodeTestCase; import java.util.ArrayList; @@ -42,7 +42,7 @@ import java.util.List; import static org.opensearch.geometry.utils.Geohash.addNeighborsAtLevel; import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder; -import static org.elasticsearch.search.suggest.completion.CategoryContextMappingTests.assertContextSuggestFields; +import static org.opensearch.search.suggest.completion.CategoryContextMappingTests.assertContextSuggestFields; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.in; import static org.hamcrest.Matchers.is; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/GeoQueryContextTests.java b/server/src/test/java/org/opensearch/search/suggest/completion/GeoQueryContextTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/GeoQueryContextTests.java rename to server/src/test/java/org/opensearch/search/suggest/completion/GeoQueryContextTests.java index 6bce0a4ba15..3f6b1c7eb99 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/GeoQueryContextTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/GeoQueryContextTests.java @@ -17,14 +17,14 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.geo.GeoPoint; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.json.JsonXContent; -import org.elasticsearch.search.suggest.completion.context.GeoQueryContext; +import org.opensearch.search.suggest.completion.context.GeoQueryContext; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/QueryContextTestCase.java b/server/src/test/java/org/opensearch/search/suggest/completion/QueryContextTestCase.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/QueryContextTestCase.java rename to server/src/test/java/org/opensearch/search/suggest/completion/QueryContextTestCase.java index 3f288e3e3e3..bb78a4d0e01 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/QueryContextTestCase.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/QueryContextTestCase.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentBuilder; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/completion/RegexOptionsTests.java b/server/src/test/java/org/opensearch/search/suggest/completion/RegexOptionsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/suggest/completion/RegexOptionsTests.java rename to server/src/test/java/org/opensearch/search/suggest/completion/RegexOptionsTests.java index a133ddf3702..9ca4950b0b1 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/completion/RegexOptionsTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/completion/RegexOptionsTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.completion; +package org.opensearch.search.suggest.completion; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; import org.elasticsearch.index.query.RegexpFlag; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGeneratorTests.java b/server/src/test/java/org/opensearch/search/suggest/phrase/DirectCandidateGeneratorTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGeneratorTests.java rename to server/src/test/java/org/opensearch/search/suggest/phrase/DirectCandidateGeneratorTests.java index 6b2d5b520f2..902edc6a7ad 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGeneratorTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/phrase/DirectCandidateGeneratorTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/phrase/LaplaceModelTests.java b/server/src/test/java/org/opensearch/search/suggest/phrase/LaplaceModelTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/suggest/phrase/LaplaceModelTests.java rename to server/src/test/java/org/opensearch/search/suggest/phrase/LaplaceModelTests.java index 22917c6c312..c3bb137b443 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/phrase/LaplaceModelTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/phrase/LaplaceModelTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.elasticsearch.common.xcontent.XContentParser; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/phrase/LinearInterpolationModelTests.java b/server/src/test/java/org/opensearch/search/suggest/phrase/LinearInterpolationModelTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/suggest/phrase/LinearInterpolationModelTests.java rename to server/src/test/java/org/opensearch/search/suggest/phrase/LinearInterpolationModelTests.java index 7efbab4584f..977b6b731db 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/phrase/LinearInterpolationModelTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/phrase/LinearInterpolationModelTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.elasticsearch.common.xcontent.XContentParser; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java b/server/src/test/java/org/opensearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java rename to server/src/test/java/org/opensearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java index f7a0827affa..9d46ecbbb33 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.LowerCaseFilter; @@ -45,7 +45,7 @@ import org.apache.lucene.store.ByteBuffersDirectory; import org.apache.lucene.store.Directory; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.CharsRefBuilder; -import org.elasticsearch.search.suggest.phrase.NoisyChannelSpellChecker.Result; +import org.opensearch.search.suggest.phrase.NoisyChannelSpellChecker.Result; import org.elasticsearch.test.ESTestCase; import java.io.CharArrayReader; @@ -54,8 +54,8 @@ import java.io.StringReader; import java.util.HashMap; import java.util.Map; -import static org.elasticsearch.search.suggest.phrase.NoisyChannelSpellChecker.DEFAULT_TOKEN_LIMIT; -import static org.elasticsearch.search.suggest.phrase.NoisyChannelSpellChecker.REAL_WORD_LIKELIHOOD; +import static org.opensearch.search.suggest.phrase.NoisyChannelSpellChecker.DEFAULT_TOKEN_LIMIT; +import static org.opensearch.search.suggest.phrase.NoisyChannelSpellChecker.REAL_WORD_LIKELIHOOD; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.greaterThan; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilderTests.java b/server/src/test/java/org/opensearch/search/suggest/phrase/PhraseSuggestionBuilderTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilderTests.java rename to server/src/test/java/org/opensearch/search/suggest/phrase/PhraseSuggestionBuilderTests.java index 29c4258f864..b88d51efde9 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/phrase/PhraseSuggestionBuilderTests.java @@ -17,11 +17,11 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.opensearch.script.Script; -import org.elasticsearch.search.suggest.AbstractSuggestionBuilderTestCase; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.AbstractSuggestionBuilderTestCase; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; import java.io.IOException; import java.util.HashMap; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/phrase/SmoothingModelTestCase.java b/server/src/test/java/org/opensearch/search/suggest/phrase/SmoothingModelTestCase.java similarity index 99% rename from server/src/test/java/org/elasticsearch/search/suggest/phrase/SmoothingModelTestCase.java rename to server/src/test/java/org/opensearch/search/suggest/phrase/SmoothingModelTestCase.java index 39220c5eaa8..0b293148e33 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/phrase/SmoothingModelTestCase.java +++ b/server/src/test/java/org/opensearch/search/suggest/phrase/SmoothingModelTestCase.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.core.WhitespaceAnalyzer; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/phrase/StupidBackoffModelTests.java b/server/src/test/java/org/opensearch/search/suggest/phrase/StupidBackoffModelTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/search/suggest/phrase/StupidBackoffModelTests.java rename to server/src/test/java/org/opensearch/search/suggest/phrase/StupidBackoffModelTests.java index c0e0abecb37..8e15ec6abeb 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/phrase/StupidBackoffModelTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/phrase/StupidBackoffModelTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.search.suggest.phrase; +package org.opensearch.search.suggest.phrase; import org.elasticsearch.common.xcontent.XContentParser; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/term/SortByTests.java b/server/src/test/java/org/opensearch/search/suggest/term/SortByTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/search/suggest/term/SortByTests.java rename to server/src/test/java/org/opensearch/search/suggest/term/SortByTests.java index 1de513b44c5..e563bc8f099 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/term/SortByTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/term/SortByTests.java @@ -17,10 +17,10 @@ * under the License. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; import org.elasticsearch.common.io.stream.AbstractWriteableEnumTestCase; -import org.elasticsearch.search.suggest.SortBy; +import org.opensearch.search.suggest.SortBy; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/search/suggest/term/StringDistanceImplTests.java b/server/src/test/java/org/opensearch/search/suggest/term/StringDistanceImplTests.java similarity index 94% rename from server/src/test/java/org/elasticsearch/search/suggest/term/StringDistanceImplTests.java rename to server/src/test/java/org/opensearch/search/suggest/term/StringDistanceImplTests.java index 8ab3fadb52b..3424784c671 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/term/StringDistanceImplTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/term/StringDistanceImplTests.java @@ -17,10 +17,10 @@ * under the License. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; import org.elasticsearch.common.io.stream.AbstractWriteableEnumTestCase; -import org.elasticsearch.search.suggest.term.TermSuggestionBuilder.StringDistanceImpl; +import org.opensearch.search.suggest.term.TermSuggestionBuilder.StringDistanceImpl; import java.io.IOException; @@ -52,8 +52,8 @@ public class StringDistanceImplTests extends AbstractWriteableEnumTestCase { assertThat(StringDistanceImpl.resolve("ngram"), equalTo(StringDistanceImpl.NGRAM)); final String doesntExist = "doesnt_exist"; - expectThrows(IllegalArgumentException.class, () -> StringDistanceImpl.resolve(doesntExist)); - + expectThrows(IllegalArgumentException.class, () -> StringDistanceImpl.resolve(doesntExist)); + NullPointerException e = expectThrows(NullPointerException.class, () -> StringDistanceImpl.resolve(null)); assertThat(e.getMessage(), equalTo("Input string is null")); } diff --git a/server/src/test/java/org/elasticsearch/search/suggest/term/SuggestModeTests.java b/server/src/test/java/org/opensearch/search/suggest/term/SuggestModeTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/search/suggest/term/SuggestModeTests.java rename to server/src/test/java/org/opensearch/search/suggest/term/SuggestModeTests.java index 22909ceb639..f48192a3bb4 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/term/SuggestModeTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/term/SuggestModeTests.java @@ -17,13 +17,13 @@ * under the License. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; import org.elasticsearch.common.io.stream.AbstractWriteableEnumTestCase; import java.io.IOException; -import static org.elasticsearch.search.suggest.term.TermSuggestionBuilder.SuggestMode; +import static org.opensearch.search.suggest.term.TermSuggestionBuilder.SuggestMode; import static org.hamcrest.Matchers.equalTo; /** diff --git a/server/src/test/java/org/elasticsearch/search/suggest/term/TermSuggestionBuilderTests.java b/server/src/test/java/org/opensearch/search/suggest/term/TermSuggestionBuilderTests.java similarity index 91% rename from server/src/test/java/org/elasticsearch/search/suggest/term/TermSuggestionBuilderTests.java rename to server/src/test/java/org/opensearch/search/suggest/term/TermSuggestionBuilderTests.java index 5a135a0ab4c..f6a9e61d9ec 100644 --- a/server/src/test/java/org/elasticsearch/search/suggest/term/TermSuggestionBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/term/TermSuggestionBuilderTests.java @@ -17,29 +17,29 @@ * under the License. */ -package org.elasticsearch.search.suggest.term; +package org.opensearch.search.suggest.term; import com.carrotsearch.randomizedtesting.generators.RandomStrings; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.json.JsonXContent; -import org.elasticsearch.search.suggest.AbstractSuggestionBuilderTestCase; -import org.elasticsearch.search.suggest.SortBy; -import org.elasticsearch.search.suggest.SuggestBuilder; -import org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext; -import org.elasticsearch.search.suggest.term.TermSuggestionBuilder.StringDistanceImpl; -import org.elasticsearch.search.suggest.term.TermSuggestionBuilder.SuggestMode; +import org.opensearch.search.suggest.AbstractSuggestionBuilderTestCase; +import org.opensearch.search.suggest.SortBy; +import org.opensearch.search.suggest.SuggestBuilder; +import org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext; +import org.opensearch.search.suggest.term.TermSuggestionBuilder.StringDistanceImpl; +import org.opensearch.search.suggest.term.TermSuggestionBuilder.SuggestMode; import java.io.IOException; import java.util.Locale; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_ACCURACY; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_EDITS; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_INSPECTIONS; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_TERM_FREQ; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MIN_DOC_FREQ; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MIN_WORD_LENGTH; -import static org.elasticsearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_PREFIX_LENGTH; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_ACCURACY; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_EDITS; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_INSPECTIONS; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MAX_TERM_FREQ; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MIN_DOC_FREQ; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_MIN_WORD_LENGTH; +import static org.opensearch.search.suggest.DirectSpellcheckerSettings.DEFAULT_PREFIX_LENGTH; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.instanceOf; diff --git a/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java b/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java index b88eedc5da1..41e55cde99b 100644 --- a/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java +++ b/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java @@ -183,7 +183,7 @@ import org.opensearch.repositories.fs.FsRepository; import org.opensearch.script.ScriptService; import org.elasticsearch.search.SearchService; import org.opensearch.search.builder.SearchSourceBuilder; -import org.elasticsearch.search.fetch.FetchPhase; +import org.opensearch.search.fetch.FetchPhase; import org.opensearch.snapshots.mockstore.MockEventuallyConsistentRepository; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.disruption.DisruptableMockTransport; diff --git a/server/src/test/java/org/opensearch/transport/RemoteClusterConnectionTests.java b/server/src/test/java/org/opensearch/transport/RemoteClusterConnectionTests.java index f330129c2da..119f527d10d 100644 --- a/server/src/test/java/org/opensearch/transport/RemoteClusterConnectionTests.java +++ b/server/src/test/java/org/opensearch/transport/RemoteClusterConnectionTests.java @@ -53,7 +53,7 @@ import org.elasticsearch.mocksocket.MockServerSocket; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHits; import org.elasticsearch.search.aggregations.InternalAggregations; -import org.elasticsearch.search.internal.InternalSearchResponse; +import org.opensearch.search.internal.InternalSearchResponse; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.VersionUtils; import org.elasticsearch.test.transport.MockTransportService; diff --git a/server/src/test/resources/org/elasticsearch/search/query/all-example-document.json b/server/src/test/resources/org/opensearch/search/query/all-example-document.json similarity index 100% rename from server/src/test/resources/org/elasticsearch/search/query/all-example-document.json rename to server/src/test/resources/org/opensearch/search/query/all-example-document.json diff --git a/server/src/test/resources/org/elasticsearch/search/query/all-query-index.json b/server/src/test/resources/org/opensearch/search/query/all-query-index.json similarity index 100% rename from server/src/test/resources/org/elasticsearch/search/query/all-query-index.json rename to server/src/test/resources/org/opensearch/search/query/all-query-index.json diff --git a/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationBuilder.java b/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationBuilder.java index fcc80424e65..935e758ec24 100644 --- a/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationBuilder.java +++ b/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationBuilder.java @@ -28,7 +28,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.index.query.QueryBuilders; import org.elasticsearch.index.query.QueryShardContext; import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import java.io.IOException; import java.util.Map; diff --git a/test/framework/src/main/java/org/elasticsearch/node/MockNode.java b/test/framework/src/main/java/org/elasticsearch/node/MockNode.java index ad756352cc0..1a48383491d 100644 --- a/test/framework/src/main/java/org/elasticsearch/node/MockNode.java +++ b/test/framework/src/main/java/org/elasticsearch/node/MockNode.java @@ -44,7 +44,7 @@ import org.opensearch.script.ScriptEngine; import org.opensearch.script.ScriptService; import org.elasticsearch.search.MockSearchService; import org.elasticsearch.search.SearchService; -import org.elasticsearch.search.fetch.FetchPhase; +import org.opensearch.search.fetch.FetchPhase; import org.elasticsearch.test.MockHttpTransport; import org.elasticsearch.test.transport.MockTransportService; import org.opensearch.threadpool.ThreadPool; diff --git a/test/framework/src/main/java/org/elasticsearch/search/MockSearchService.java b/test/framework/src/main/java/org/elasticsearch/search/MockSearchService.java index 10c66be594c..156c2da48fd 100644 --- a/test/framework/src/main/java/org/elasticsearch/search/MockSearchService.java +++ b/test/framework/src/main/java/org/elasticsearch/search/MockSearchService.java @@ -26,8 +26,8 @@ import org.elasticsearch.indices.breaker.CircuitBreakerService; import org.elasticsearch.node.MockNode; import org.elasticsearch.plugins.Plugin; import org.opensearch.script.ScriptService; -import org.elasticsearch.search.fetch.FetchPhase; -import org.elasticsearch.search.internal.ReaderContext; +import org.opensearch.search.fetch.FetchPhase; +import org.opensearch.search.internal.ReaderContext; import org.opensearch.threadpool.ThreadPool; import java.util.HashMap; diff --git a/test/framework/src/main/java/org/elasticsearch/search/RandomSearchRequestGenerator.java b/test/framework/src/main/java/org/elasticsearch/search/RandomSearchRequestGenerator.java index 316721eaa77..2e7696f4adb 100644 --- a/test/framework/src/main/java/org/elasticsearch/search/RandomSearchRequestGenerator.java +++ b/test/framework/src/main/java/org/elasticsearch/search/RandomSearchRequestGenerator.java @@ -38,16 +38,16 @@ import org.elasticsearch.search.aggregations.AggregationBuilders; import org.opensearch.search.builder.PointInTimeBuilder; import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.collapse.CollapseBuilder; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.rescore.RescorerBuilder; import org.opensearch.search.searchafter.SearchAfterBuilder; import org.opensearch.search.slice.SliceBuilder; import org.opensearch.search.sort.ScriptSortBuilder; import org.opensearch.search.sort.SortBuilders; import org.opensearch.search.sort.SortOrder; -import org.elasticsearch.search.suggest.SuggestBuilder; +import org.opensearch.search.suggest.SuggestBuilder; import org.elasticsearch.test.AbstractQueryTestCase; import java.io.IOException; diff --git a/test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java b/test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java index 8472b17bcc4..dafdcd02c2a 100644 --- a/test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java @@ -113,11 +113,11 @@ import org.elasticsearch.search.aggregations.pipeline.PipelineAggregator.Pipelin import org.elasticsearch.search.aggregations.support.CoreValuesSourceType; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry; import org.elasticsearch.search.aggregations.support.ValuesSourceType; -import org.elasticsearch.search.fetch.FetchPhase; -import org.elasticsearch.search.fetch.subphase.FetchDocValuesPhase; -import org.elasticsearch.search.fetch.subphase.FetchSourcePhase; -import org.elasticsearch.search.internal.ContextIndexSearcher; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.fetch.FetchPhase; +import org.opensearch.search.fetch.subphase.FetchDocValuesPhase; +import org.opensearch.search.fetch.subphase.FetchSourcePhase; +import org.opensearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.internal.SearchContext; import org.opensearch.search.lookup.SearchLookup; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.InternalAggregationTestCase; diff --git a/test/framework/src/main/java/org/elasticsearch/test/ESSingleNodeTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/ESSingleNodeTestCase.java index b6f1cb2336d..aba8500b558 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/ESSingleNodeTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/test/ESSingleNodeTestCase.java @@ -52,7 +52,7 @@ import org.elasticsearch.node.Node; import org.elasticsearch.node.NodeValidationException; import org.elasticsearch.plugins.Plugin; import org.opensearch.script.MockScriptService; -import org.elasticsearch.search.internal.SearchContext; +import org.opensearch.search.internal.SearchContext; import org.opensearch.transport.TransportSettings; import org.junit.AfterClass; import org.junit.BeforeClass; diff --git a/test/framework/src/main/java/org/elasticsearch/test/TestSearchContext.java b/test/framework/src/main/java/org/elasticsearch/test/TestSearchContext.java index 57184a5ea87..82487c000fd 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/TestSearchContext.java +++ b/test/framework/src/main/java/org/elasticsearch/test/TestSearchContext.java @@ -41,25 +41,25 @@ import org.elasticsearch.search.SearchShardTarget; import org.elasticsearch.search.aggregations.SearchContextAggregations; import org.opensearch.search.collapse.CollapseContext; import org.opensearch.search.dfs.DfsSearchResult; -import org.elasticsearch.search.fetch.FetchPhase; -import org.elasticsearch.search.fetch.FetchSearchResult; -import org.elasticsearch.search.fetch.StoredFieldsContext; -import org.elasticsearch.search.fetch.subphase.FetchDocValuesContext; -import org.elasticsearch.search.fetch.subphase.FetchFieldsContext; -import org.elasticsearch.search.fetch.subphase.FetchSourceContext; -import org.elasticsearch.search.fetch.subphase.ScriptFieldsContext; -import org.elasticsearch.search.fetch.subphase.highlight.SearchHighlightContext; -import org.elasticsearch.search.internal.ContextIndexSearcher; -import org.elasticsearch.search.internal.ReaderContext; -import org.elasticsearch.search.internal.ScrollContext; -import org.elasticsearch.search.internal.SearchContext; -import org.elasticsearch.search.internal.ShardSearchContextId; -import org.elasticsearch.search.internal.ShardSearchRequest; -import org.elasticsearch.search.profile.Profilers; -import org.elasticsearch.search.query.QuerySearchResult; +import org.opensearch.search.fetch.FetchPhase; +import org.opensearch.search.fetch.FetchSearchResult; +import org.opensearch.search.fetch.StoredFieldsContext; +import org.opensearch.search.fetch.subphase.FetchDocValuesContext; +import org.opensearch.search.fetch.subphase.FetchFieldsContext; +import org.opensearch.search.fetch.subphase.FetchSourceContext; +import org.opensearch.search.fetch.subphase.ScriptFieldsContext; +import org.opensearch.search.fetch.subphase.highlight.SearchHighlightContext; +import org.opensearch.search.internal.ContextIndexSearcher; +import org.opensearch.search.internal.ReaderContext; +import org.opensearch.search.internal.ScrollContext; +import org.opensearch.search.internal.SearchContext; +import org.opensearch.search.internal.ShardSearchContextId; +import org.opensearch.search.internal.ShardSearchRequest; +import org.opensearch.search.profile.Profilers; +import org.opensearch.search.query.QuerySearchResult; import org.opensearch.search.rescore.RescoreContext; import org.opensearch.search.sort.SortAndFormats; -import org.elasticsearch.search.suggest.SuggestionSearchContext; +import org.opensearch.search.suggest.SuggestionSearchContext; import java.util.Collections; import java.util.HashMap; diff --git a/test/framework/src/main/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java b/test/framework/src/main/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java index 324772405f9..070f2bd1893 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java +++ b/test/framework/src/main/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java @@ -57,7 +57,7 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.opensearch.rest.RestStatus; import org.elasticsearch.search.SearchHit; -import org.elasticsearch.search.suggest.Suggest; +import org.opensearch.search.suggest.Suggest; import org.elasticsearch.test.NotEqualMessageBuilder; import org.hamcrest.CoreMatchers; import org.hamcrest.Matcher; diff --git a/test/framework/src/test/java/org/elasticsearch/search/MockSearchServiceTests.java b/test/framework/src/test/java/org/elasticsearch/search/MockSearchServiceTests.java index b49f1fb0aca..6f96cf170ef 100644 --- a/test/framework/src/test/java/org/elasticsearch/search/MockSearchServiceTests.java +++ b/test/framework/src/test/java/org/elasticsearch/search/MockSearchServiceTests.java @@ -19,7 +19,7 @@ package org.elasticsearch.search; -import org.elasticsearch.search.internal.ReaderContext; +import org.opensearch.search.internal.ReaderContext; import org.elasticsearch.test.ESTestCase; import static org.mockito.Mockito.mock;