From 4d7727ba0736f38d9064cc5ae66d0e923a24862b Mon Sep 17 00:00:00 2001 From: Rabi Panda Date: Mon, 8 Mar 2021 13:33:25 -0800 Subject: [PATCH] [Rename] modules/rank-eval (#214) Refactor rank-eval module as part of the Elasticsearch to OpenSearch renaming effort. Signed-off-by: Rabi Panda --- .../client/RequestConverters.java | 2 +- .../client/RestHighLevelClient.java | 6 ++-- .../org/elasticsearch/client/RankEvalIT.java | 28 +++++++++---------- .../client/RequestConvertersTests.java | 10 +++---- .../client/RestHighLevelClientTests.java | 14 +++++----- .../documentation/SearchDocumentationIT.java | 20 ++++++------- modules/rank-eval/build.gradle | 6 ++-- .../index/rankeval/RankEvalRequestIT.java | 6 ++-- .../rankeval/DiscountedCumulativeGain.java | 4 +-- .../index/rankeval/EvalQueryQuality.java | 4 +-- .../index/rankeval/EvaluationMetric.java | 4 +-- .../rankeval/ExpectedReciprocalRank.java | 4 +-- .../index/rankeval/MeanReciprocalRank.java | 4 +-- .../index/rankeval/MetricDetail.java | 2 +- .../index/rankeval/PrecisionAtK.java | 4 +-- .../index/rankeval/RankEvalAction.java | 2 +- .../RankEvalNamedXContentProvider.java | 2 +- .../index/rankeval/RankEvalPlugin.java | 2 +- .../index/rankeval/RankEvalRequest.java | 2 +- .../rankeval/RankEvalRequestBuilder.java | 2 +- .../index/rankeval/RankEvalResponse.java | 2 +- .../index/rankeval/RankEvalSpec.java | 2 +- .../index/rankeval/RatedDocument.java | 2 +- .../index/rankeval/RatedRequest.java | 4 +-- .../index/rankeval/RatedSearchHit.java | 2 +- .../index/rankeval/RecallAtK.java | 4 +-- .../index/rankeval/RestRankEvalAction.java | 2 +- .../rankeval/TransportRankEvalAction.java | 4 +-- ...icsearch.plugins.spi.NamedXContentProvider | 2 +- .../DiscountedCumulativeGainTests.java | 4 +-- .../index/rankeval/EvalQueryQualityTests.java | 2 +- .../rankeval/ExpectedReciprocalRankTests.java | 2 +- .../rankeval/MeanReciprocalRankTests.java | 2 +- .../index/rankeval/PrecisionAtKTests.java | 2 +- .../index/rankeval/RankEvalRequestTests.java | 2 +- .../index/rankeval/RankEvalResponseTests.java | 2 +- .../index/rankeval/RankEvalSpecTests.java | 4 +-- .../index/rankeval/RatedDocumentTests.java | 2 +- .../index/rankeval/RatedRequestsTests.java | 2 +- .../index/rankeval/RatedSearchHitTests.java | 2 +- .../index/rankeval/RecallAtKTests.java | 2 +- .../TransportRankEvalActionTests.java | 2 +- .../index/rankeval/RankEvalYamlIT.java | 2 +- 43 files changed, 92 insertions(+), 92 deletions(-) rename modules/rank-eval/src/internalClusterTest/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalRequestIT.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/DiscountedCumulativeGain.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/EvalQueryQuality.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/EvaluationMetric.java (97%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/ExpectedReciprocalRank.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/MeanReciprocalRank.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/MetricDetail.java (97%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/PrecisionAtK.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalAction.java (96%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalNamedXContentProvider.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalPlugin.java (99%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalRequest.java (99%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalRequestBuilder.java (97%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalResponse.java (99%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalSpec.java (99%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RatedDocument.java (99%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RatedRequest.java (99%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RatedSearchHit.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RecallAtK.java (98%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/RestRankEvalAction.java (99%) rename modules/rank-eval/src/main/java/org/{elasticsearch => opensearch}/index/rankeval/TransportRankEvalAction.java (98%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/DiscountedCumulativeGainTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/EvalQueryQualityTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/ExpectedReciprocalRankTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/MeanReciprocalRankTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/PrecisionAtKTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalRequestTests.java (98%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalResponseTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalSpecTests.java (98%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/RatedDocumentTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/RatedRequestsTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/RatedSearchHitTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/RecallAtKTests.java (99%) rename modules/rank-eval/src/test/java/org/{elasticsearch => opensearch}/index/rankeval/TransportRankEvalActionTests.java (98%) rename modules/rank-eval/src/yamlRestTest/java/org/{elasticsearch => opensearch}/index/rankeval/RankEvalYamlIT.java (97%) 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 6d72c143b93..bad266c033d 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 @@ -73,7 +73,7 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.index.VersionType; import org.elasticsearch.index.mapper.MapperService; -import org.elasticsearch.index.rankeval.RankEvalRequest; +import org.opensearch.index.rankeval.RankEvalRequest; import org.elasticsearch.index.reindex.AbstractBulkByScrollRequest; import org.elasticsearch.index.reindex.DeleteByQueryRequest; import org.elasticsearch.index.reindex.ReindexRequest; 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 3459b4933fb..c4a0893596f 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 @@ -73,8 +73,8 @@ import org.elasticsearch.common.xcontent.DeprecationHandler; import org.elasticsearch.common.xcontent.NamedXContentRegistry; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.index.rankeval.RankEvalRequest; -import org.elasticsearch.index.rankeval.RankEvalResponse; +import org.opensearch.index.rankeval.RankEvalRequest; +import org.opensearch.index.rankeval.RankEvalResponse; import org.elasticsearch.index.reindex.BulkByScrollResponse; import org.elasticsearch.index.reindex.DeleteByQueryRequest; import org.elasticsearch.index.reindex.ReindexRequest; @@ -1687,7 +1687,7 @@ public class RestHighLevelClient implements Closeable { /** * Converts a {@link ResponseException} obtained from the low level REST client into an {@link OpenSearchException}. - * If a response body was returned, tries to parse it as an error returned from Elasticsearch. + * If a response body was returned, tries to parse it as an error returned from OpenSearch. * If no response body was returned or anything goes wrong while parsing the error, returns a new {@link OpenSearchStatusException} * that wraps the original {@link ResponseException}. The potential exception obtained while parsing is added to the returned * exception as a suppressed exception. This method is guaranteed to not throw any exception eventually thrown while parsing. diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/RankEvalIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/RankEvalIT.java index 7de2af477d9..27e379691ae 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/RankEvalIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/RankEvalIT.java @@ -22,19 +22,19 @@ package org.elasticsearch.client; import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.action.support.IndicesOptions; import org.elasticsearch.index.query.MatchAllQueryBuilder; -import org.elasticsearch.index.rankeval.DiscountedCumulativeGain; -import org.elasticsearch.index.rankeval.EvalQueryQuality; -import org.elasticsearch.index.rankeval.EvaluationMetric; -import org.elasticsearch.index.rankeval.ExpectedReciprocalRank; -import org.elasticsearch.index.rankeval.MeanReciprocalRank; -import org.elasticsearch.index.rankeval.PrecisionAtK; -import org.elasticsearch.index.rankeval.RecallAtK; -import org.elasticsearch.index.rankeval.RankEvalRequest; -import org.elasticsearch.index.rankeval.RankEvalResponse; -import org.elasticsearch.index.rankeval.RankEvalSpec; -import org.elasticsearch.index.rankeval.RatedDocument; -import org.elasticsearch.index.rankeval.RatedRequest; -import org.elasticsearch.index.rankeval.RatedSearchHit; +import org.opensearch.index.rankeval.DiscountedCumulativeGain; +import org.opensearch.index.rankeval.EvalQueryQuality; +import org.opensearch.index.rankeval.EvaluationMetric; +import org.opensearch.index.rankeval.ExpectedReciprocalRank; +import org.opensearch.index.rankeval.MeanReciprocalRank; +import org.opensearch.index.rankeval.PrecisionAtK; +import org.opensearch.index.rankeval.RecallAtK; +import org.opensearch.index.rankeval.RankEvalRequest; +import org.opensearch.index.rankeval.RankEvalResponse; +import org.opensearch.index.rankeval.RankEvalSpec; +import org.opensearch.index.rankeval.RatedDocument; +import org.opensearch.index.rankeval.RatedRequest; +import org.opensearch.index.rankeval.RatedSearchHit; import org.elasticsearch.search.builder.SearchSourceBuilder; import org.junit.Before; @@ -47,7 +47,7 @@ import java.util.function.Supplier; import java.util.stream.Collectors; import java.util.stream.Stream; -import static org.elasticsearch.index.rankeval.EvaluationMetric.filterUnratedDocuments; +import static org.opensearch.index.rankeval.EvaluationMetric.filterUnratedDocuments; public class RankEvalIT extends ESRestHighLevelClientTestCase { 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 7f6e01ed06e..f895dcb76e3 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 @@ -77,11 +77,11 @@ import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.index.query.MatchAllQueryBuilder; import org.elasticsearch.index.query.QueryBuilders; import org.elasticsearch.index.query.TermQueryBuilder; -import org.elasticsearch.index.rankeval.PrecisionAtK; -import org.elasticsearch.index.rankeval.RankEvalRequest; -import org.elasticsearch.index.rankeval.RankEvalSpec; -import org.elasticsearch.index.rankeval.RatedRequest; -import org.elasticsearch.index.rankeval.RestRankEvalAction; +import org.opensearch.index.rankeval.PrecisionAtK; +import org.opensearch.index.rankeval.RankEvalRequest; +import org.opensearch.index.rankeval.RankEvalSpec; +import org.opensearch.index.rankeval.RatedRequest; +import org.opensearch.index.rankeval.RestRankEvalAction; import org.elasticsearch.index.reindex.AbstractBulkByScrollRequest; import org.elasticsearch.index.reindex.DeleteByQueryRequest; import org.elasticsearch.index.reindex.ReindexRequest; 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 fd4626df85f..7240dea259a 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 @@ -56,13 +56,13 @@ import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.cbor.CborXContent; import org.elasticsearch.common.xcontent.smile.SmileXContent; -import org.elasticsearch.index.rankeval.DiscountedCumulativeGain; -import org.elasticsearch.index.rankeval.EvaluationMetric; -import org.elasticsearch.index.rankeval.ExpectedReciprocalRank; -import org.elasticsearch.index.rankeval.MeanReciprocalRank; -import org.elasticsearch.index.rankeval.MetricDetail; -import org.elasticsearch.index.rankeval.PrecisionAtK; -import org.elasticsearch.index.rankeval.RecallAtK; +import org.opensearch.index.rankeval.DiscountedCumulativeGain; +import org.opensearch.index.rankeval.EvaluationMetric; +import org.opensearch.index.rankeval.ExpectedReciprocalRank; +import org.opensearch.index.rankeval.MeanReciprocalRank; +import org.opensearch.index.rankeval.MetricDetail; +import org.opensearch.index.rankeval.PrecisionAtK; +import org.opensearch.index.rankeval.RecallAtK; import org.elasticsearch.join.aggregations.ChildrenAggregationBuilder; import org.elasticsearch.rest.RestStatus; import org.elasticsearch.search.SearchHits; 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 c9789e13d9f..4e3da54d32b 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 @@ -63,16 +63,16 @@ import org.elasticsearch.index.get.GetResult; import org.elasticsearch.index.query.MatchQueryBuilder; import org.elasticsearch.index.query.QueryBuilder; import org.elasticsearch.index.query.QueryBuilders; -import org.elasticsearch.index.rankeval.EvalQueryQuality; -import org.elasticsearch.index.rankeval.EvaluationMetric; -import org.elasticsearch.index.rankeval.MetricDetail; -import org.elasticsearch.index.rankeval.PrecisionAtK; -import org.elasticsearch.index.rankeval.RankEvalRequest; -import org.elasticsearch.index.rankeval.RankEvalResponse; -import org.elasticsearch.index.rankeval.RankEvalSpec; -import org.elasticsearch.index.rankeval.RatedDocument; -import org.elasticsearch.index.rankeval.RatedRequest; -import org.elasticsearch.index.rankeval.RatedSearchHit; +import org.opensearch.index.rankeval.EvalQueryQuality; +import org.opensearch.index.rankeval.EvaluationMetric; +import org.opensearch.index.rankeval.MetricDetail; +import org.opensearch.index.rankeval.PrecisionAtK; +import org.opensearch.index.rankeval.RankEvalRequest; +import org.opensearch.index.rankeval.RankEvalResponse; +import org.opensearch.index.rankeval.RankEvalSpec; +import org.opensearch.index.rankeval.RatedDocument; +import org.opensearch.index.rankeval.RatedRequest; +import org.opensearch.index.rankeval.RatedSearchHit; import org.elasticsearch.rest.RestStatus; import org.elasticsearch.script.ScriptType; import org.opensearch.script.mustache.MultiSearchTemplateRequest; diff --git a/modules/rank-eval/build.gradle b/modules/rank-eval/build.gradle index 0405e2c9040..837c7a0339a 100644 --- a/modules/rank-eval/build.gradle +++ b/modules/rank-eval/build.gradle @@ -16,12 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -apply plugin: 'elasticsearch.yaml-rest-test' -apply plugin: 'elasticsearch.internal-cluster-test' +apply plugin: 'opensearch.yaml-rest-test' +apply plugin: 'opensearch.internal-cluster-test' esplugin { description 'The Rank Eval module adds APIs to evaluate ranking quality.' - classname 'org.elasticsearch.index.rankeval.RankEvalPlugin' + classname 'org.opensearch.index.rankeval.RankEvalPlugin' hasClientJar = true } diff --git a/modules/rank-eval/src/internalClusterTest/java/org/elasticsearch/index/rankeval/RankEvalRequestIT.java b/modules/rank-eval/src/internalClusterTest/java/org/opensearch/index/rankeval/RankEvalRequestIT.java similarity index 98% rename from modules/rank-eval/src/internalClusterTest/java/org/elasticsearch/index/rankeval/RankEvalRequestIT.java rename to modules/rank-eval/src/internalClusterTest/java/org/opensearch/index/rankeval/RankEvalRequestIT.java index 408694de3b0..ca6e11b507b 100644 --- a/modules/rank-eval/src/internalClusterTest/java/org/elasticsearch/index/rankeval/RankEvalRequestIT.java +++ b/modules/rank-eval/src/internalClusterTest/java/org/opensearch/index/rankeval/RankEvalRequestIT.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.OpenSearchException; import org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequest.AliasActions; @@ -27,7 +27,7 @@ import org.elasticsearch.index.IndexNotFoundException; import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.index.query.MatchAllQueryBuilder; import org.elasticsearch.index.query.QueryBuilders; -import org.elasticsearch.index.rankeval.PrecisionAtK.Detail; +import org.opensearch.index.rankeval.PrecisionAtK.Detail; import org.elasticsearch.indices.IndexClosedException; import org.elasticsearch.plugins.Plugin; import org.elasticsearch.search.builder.SearchSourceBuilder; @@ -41,7 +41,7 @@ import java.util.List; import java.util.Map.Entry; import java.util.Set; -import static org.elasticsearch.index.rankeval.EvaluationMetric.filterUnratedDocuments; +import static org.opensearch.index.rankeval.EvaluationMetric.filterUnratedDocuments; import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked; import static org.hamcrest.Matchers.instanceOf; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/DiscountedCumulativeGain.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/DiscountedCumulativeGain.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/DiscountedCumulativeGain.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/DiscountedCumulativeGain.java index 1494743959b..55dcf1f44c9 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/DiscountedCumulativeGain.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/DiscountedCumulativeGain.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.io.stream.StreamInput; @@ -38,7 +38,7 @@ import java.util.stream.Collectors; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg; -import static org.elasticsearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; +import static org.opensearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; /** * Metric implementing Discounted Cumulative Gain. diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/EvalQueryQuality.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/EvalQueryQuality.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/EvalQueryQuality.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/EvalQueryQuality.java index 1962d8c19bc..ef4b3c57611 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/EvalQueryQuality.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/EvalQueryQuality.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.io.stream.StreamInput; @@ -28,7 +28,7 @@ import org.elasticsearch.common.xcontent.ToXContentFragment; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentParserUtils; -import org.elasticsearch.index.rankeval.RatedDocument.DocumentKey; +import org.opensearch.index.rankeval.RatedDocument.DocumentKey; import java.io.IOException; import java.util.ArrayList; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/EvaluationMetric.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/EvaluationMetric.java similarity index 97% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/EvaluationMetric.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/EvaluationMetric.java index e111af6bd7b..63975b38100 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/EvaluationMetric.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/EvaluationMetric.java @@ -17,11 +17,11 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.io.stream.NamedWriteable; import org.elasticsearch.common.xcontent.ToXContentObject; -import org.elasticsearch.index.rankeval.RatedDocument.DocumentKey; +import org.opensearch.index.rankeval.RatedDocument.DocumentKey; import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHits; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/ExpectedReciprocalRank.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/ExpectedReciprocalRank.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/ExpectedReciprocalRank.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/ExpectedReciprocalRank.java index 2c4fa58a799..6c59df9fa82 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/ExpectedReciprocalRank.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/ExpectedReciprocalRank.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.Nullable; import org.elasticsearch.common.ParseField; @@ -36,7 +36,7 @@ import java.util.OptionalInt; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg; -import static org.elasticsearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; +import static org.opensearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; /** * Implementation of the Expected Reciprocal Rank metric described in:

diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/MeanReciprocalRank.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/MeanReciprocalRank.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/MeanReciprocalRank.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/MeanReciprocalRank.java index 8b0ed42acb5..3d838e127d6 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/MeanReciprocalRank.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/MeanReciprocalRank.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.io.stream.StreamInput; @@ -34,7 +34,7 @@ import java.util.OptionalInt; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg; -import static org.elasticsearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; +import static org.opensearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; /** * Metric implementing Mean Reciprocal Rank (https://en.wikipedia.org/wiki/Mean_reciprocal_rank).
diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/MetricDetail.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/MetricDetail.java similarity index 97% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/MetricDetail.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/MetricDetail.java index 0273658d82b..f74ea5d4837 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/MetricDetail.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/MetricDetail.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.io.stream.NamedWriteable; import org.elasticsearch.common.xcontent.ToXContentObject; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/PrecisionAtK.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/PrecisionAtK.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/PrecisionAtK.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/PrecisionAtK.java index 71c121b352b..657b5f4f305 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/PrecisionAtK.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/PrecisionAtK.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.io.stream.StreamInput; @@ -36,7 +36,7 @@ import javax.naming.directory.SearchResult; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg; -import static org.elasticsearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; +import static org.opensearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; /** * Metric implementing Precision@K diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalAction.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalAction.java similarity index 96% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalAction.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalAction.java index 68b0b414ee0..838a201e781 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalAction.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalAction.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.ActionType; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalNamedXContentProvider.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalNamedXContentProvider.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalNamedXContentProvider.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalNamedXContentProvider.java index 1995e7f42df..d087736e457 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalNamedXContentProvider.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalNamedXContentProvider.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.xcontent.NamedXContentRegistry; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalPlugin.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalPlugin.java similarity index 99% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalPlugin.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalPlugin.java index 33bc5928a36..5bed06fb701 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalPlugin.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalPlugin.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.ActionRequest; import org.elasticsearch.action.ActionResponse; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalRequest.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalRequest.java similarity index 99% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalRequest.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalRequest.java index 269d8d33829..5c18a157f04 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalRequest.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalRequest.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.Version; import org.elasticsearch.action.ActionRequest; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalRequestBuilder.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalRequestBuilder.java similarity index 97% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalRequestBuilder.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalRequestBuilder.java index d24d0397f57..81562b61b9b 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalRequestBuilder.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalRequestBuilder.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.ActionType; import org.elasticsearch.action.ActionRequestBuilder; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalResponse.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalResponse.java similarity index 99% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalResponse.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalResponse.java index 1d39482736b..57403c688dd 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalResponse.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalResponse.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.OpenSearchException; import org.elasticsearch.action.ActionResponse; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalSpec.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalSpec.java similarity index 99% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalSpec.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalSpec.java index 505a81de9f1..fffbd0e14b0 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalSpec.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RankEvalSpec.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.ParsingException; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedDocument.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedDocument.java similarity index 99% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedDocument.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedDocument.java index 6fe6a96a9d3..6fe68605e1f 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedDocument.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedDocument.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.Strings; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedRequest.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedRequest.java similarity index 99% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedRequest.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedRequest.java index 2fe3f1922d5..fab657b8c07 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedRequest.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedRequest.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.Nullable; import org.elasticsearch.common.ParseField; @@ -29,7 +29,7 @@ import org.elasticsearch.common.xcontent.ConstructingObjectParser; import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; -import org.elasticsearch.index.rankeval.RatedDocument.DocumentKey; +import org.opensearch.index.rankeval.RatedDocument.DocumentKey; import org.elasticsearch.search.builder.SearchSourceBuilder; import java.io.IOException; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedSearchHit.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedSearchHit.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedSearchHit.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedSearchHit.java index 857d43c4568..5640a7e1db8 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RatedSearchHit.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RatedSearchHit.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.io.stream.StreamInput; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RecallAtK.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RecallAtK.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RecallAtK.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RecallAtK.java index 3fe2f2c2d82..fe108f57e10 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RecallAtK.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RecallAtK.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.io.stream.StreamInput; @@ -36,7 +36,7 @@ import javax.naming.directory.SearchResult; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg; import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg; -import static org.elasticsearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; +import static org.opensearch.index.rankeval.EvaluationMetric.joinHitsWithRatings; /** * Metric implementing Recall@K diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RestRankEvalAction.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RestRankEvalAction.java similarity index 99% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RestRankEvalAction.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RestRankEvalAction.java index fc1f9f9f53c..acf90514e23 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RestRankEvalAction.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/RestRankEvalAction.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.search.SearchType; import org.elasticsearch.action.support.IndicesOptions; diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/TransportRankEvalAction.java b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/TransportRankEvalAction.java similarity index 98% rename from modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/TransportRankEvalAction.java rename to modules/rank-eval/src/main/java/org/opensearch/index/rankeval/TransportRankEvalAction.java index b08e457e8f4..ee1dab2874c 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/TransportRankEvalAction.java +++ b/modules/rank-eval/src/main/java/org/opensearch/index/rankeval/TransportRankEvalAction.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.search.MultiSearchRequest; @@ -51,7 +51,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import static org.elasticsearch.common.xcontent.XContentHelper.createParser; -import static org.elasticsearch.index.rankeval.RatedRequest.validateEvaluatedQuery; +import static org.opensearch.index.rankeval.RatedRequest.validateEvaluatedQuery; /** * Instances of this class execute a collection of search intents (read: user diff --git a/modules/rank-eval/src/main/resources/META-INF/services/org.elasticsearch.plugins.spi.NamedXContentProvider b/modules/rank-eval/src/main/resources/META-INF/services/org.elasticsearch.plugins.spi.NamedXContentProvider index cd505a43679..7527772ad1c 100644 --- a/modules/rank-eval/src/main/resources/META-INF/services/org.elasticsearch.plugins.spi.NamedXContentProvider +++ b/modules/rank-eval/src/main/resources/META-INF/services/org.elasticsearch.plugins.spi.NamedXContentProvider @@ -1 +1 @@ -org.elasticsearch.index.rankeval.RankEvalNamedXContentProvider \ No newline at end of file +org.opensearch.index.rankeval.RankEvalNamedXContentProvider diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/DiscountedCumulativeGainTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/DiscountedCumulativeGainTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/DiscountedCumulativeGainTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/DiscountedCumulativeGainTests.java index a8efea05b01..9a993f802e1 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/DiscountedCumulativeGainTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/DiscountedCumulativeGainTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.OriginalIndices; import org.elasticsearch.common.Strings; @@ -42,7 +42,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import static org.elasticsearch.index.rankeval.EvaluationMetric.filterUnratedDocuments; +import static org.opensearch.index.rankeval.EvaluationMetric.filterUnratedDocuments; import static org.elasticsearch.test.EqualsHashCodeTestUtils.checkEqualsAndHashCode; import static org.elasticsearch.test.XContentTestUtils.insertRandomFields; import static org.hamcrest.CoreMatchers.containsString; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/EvalQueryQualityTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/EvalQueryQualityTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/EvalQueryQualityTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/EvalQueryQualityTests.java index a6d969a3237..49280001f69 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/EvalQueryQualityTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/EvalQueryQualityTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.OriginalIndices; import org.elasticsearch.common.bytes.BytesReference; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/ExpectedReciprocalRankTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/ExpectedReciprocalRankTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/ExpectedReciprocalRankTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/ExpectedReciprocalRankTests.java index 8fcbb2a2f2f..956c4659471 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/ExpectedReciprocalRankTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/ExpectedReciprocalRankTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.OriginalIndices; import org.elasticsearch.common.bytes.BytesReference; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/MeanReciprocalRankTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/MeanReciprocalRankTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/MeanReciprocalRankTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/MeanReciprocalRankTests.java index 51112ede57d..abcbef937e6 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/MeanReciprocalRankTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/MeanReciprocalRankTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.OriginalIndices; import org.elasticsearch.common.bytes.BytesReference; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/PrecisionAtKTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/PrecisionAtKTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/PrecisionAtKTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/PrecisionAtKTests.java index a00f5047d0e..121ac0992f4 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/PrecisionAtKTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/PrecisionAtKTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.OriginalIndices; import org.elasticsearch.common.bytes.BytesReference; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalRequestTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalRequestTests.java similarity index 98% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalRequestTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalRequestTests.java index 7409a84e056..ea6f170e098 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalRequestTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalRequestTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.search.SearchType; import org.elasticsearch.action.support.IndicesOptions; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalResponseTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalResponseTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalResponseTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalResponseTests.java index d6bdfa4d169..93ac1d257ce 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalResponseTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalResponseTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.OpenSearchException; import org.elasticsearch.action.OriginalIndices; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalSpecTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalSpecTests.java similarity index 98% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalSpecTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalSpecTests.java index 3dace4dea50..eda06d0856f 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RankEvalSpecTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RankEvalSpecTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.Strings; import org.elasticsearch.common.bytes.BytesReference; @@ -31,7 +31,7 @@ import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.common.xcontent.json.JsonXContent; import org.elasticsearch.index.query.MatchAllQueryBuilder; import org.elasticsearch.index.query.QueryBuilder; -import org.elasticsearch.index.rankeval.RankEvalSpec.ScriptWithId; +import org.opensearch.index.rankeval.RankEvalSpec.ScriptWithId; import org.elasticsearch.script.Script; import org.elasticsearch.script.ScriptType; import org.elasticsearch.search.builder.SearchSourceBuilder; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedDocumentTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedDocumentTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedDocumentTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedDocumentTests.java index c62fc1fa2bb..250b97aeb79 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedDocumentTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedDocumentTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedRequestsTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedRequestsTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedRequestsTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedRequestsTests.java index e5fe57cbdd0..9b961ac4357 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedRequestsTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedRequestsTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedSearchHitTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedSearchHitTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedSearchHitTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedSearchHitTests.java index b615a3c019a..c5d662c818b 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RatedSearchHitTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RatedSearchHitTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RecallAtKTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RecallAtKTests.java similarity index 99% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RecallAtKTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RecallAtKTests.java index 5f2f27ffc8f..7623fa81be8 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/RecallAtKTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/RecallAtKTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.OriginalIndices; import org.elasticsearch.common.bytes.BytesReference; diff --git a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/TransportRankEvalActionTests.java b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/TransportRankEvalActionTests.java similarity index 98% rename from modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/TransportRankEvalActionTests.java rename to modules/rank-eval/src/test/java/org/opensearch/index/rankeval/TransportRankEvalActionTests.java index 2e1199dcafa..da5fed99868 100644 --- a/modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/TransportRankEvalActionTests.java +++ b/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/TransportRankEvalActionTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.search.MultiSearchRequest; diff --git a/modules/rank-eval/src/yamlRestTest/java/org/elasticsearch/index/rankeval/RankEvalYamlIT.java b/modules/rank-eval/src/yamlRestTest/java/org/opensearch/index/rankeval/RankEvalYamlIT.java similarity index 97% rename from modules/rank-eval/src/yamlRestTest/java/org/elasticsearch/index/rankeval/RankEvalYamlIT.java rename to modules/rank-eval/src/yamlRestTest/java/org/opensearch/index/rankeval/RankEvalYamlIT.java index 466cb92661d..df54f2c2149 100644 --- a/modules/rank-eval/src/yamlRestTest/java/org/elasticsearch/index/rankeval/RankEvalYamlIT.java +++ b/modules/rank-eval/src/yamlRestTest/java/org/opensearch/index/rankeval/RankEvalYamlIT.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.index.rankeval; +package org.opensearch.index.rankeval; import com.carrotsearch.randomizedtesting.annotations.Name; import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;