[Rename] refactor more of o.e.search package in the server module. (#306)
As part of this commit we refactor the following in the o.e.search package: - rename `org.elasticsearch.search.fetch` to `org.opensearch.search.fetch` - rename `org.elasticsearch.search.internal` to `org.opensearch.search.internal` - rename `org.elasticsearch.search.profile` to `org.opensearch.search.profile` - rename `org.elasticsearch.search.query` to `org.opensearch.search.query` - rename `org.elasticsearch.search.suggest` to `org.opensearch.search.suggest` - rename other instances of Elasticsearch to OpenSearch in these packages. Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
43c9b2425e
commit
63edce1243
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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}.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<SearchRequest, Se
|
|||
}
|
||||
|
||||
/**
|
||||
* If specified, Elasticsearch will execute this search request using reader contexts from that point in time.
|
||||
* If specified, OpenSearch will execute this search request using reader contexts from that point in time.
|
||||
*/
|
||||
public SearchRequestBuilder setPointInTime(PointInTimeBuilder pointInTimeBuilder) {
|
||||
sourceBuilder().pointInTimeBuilder(pointInTimeBuilder);
|
||||
|
|
|
@ -40,10 +40,10 @@ import org.elasticsearch.search.SearchHit;
|
|||
import org.elasticsearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.Aggregations;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.elasticsearch.search.internal.InternalSearchResponse;
|
||||
import org.elasticsearch.search.profile.ProfileShardResult;
|
||||
import org.elasticsearch.search.profile.SearchProfileShardResults;
|
||||
import org.elasticsearch.search.suggest.Suggest;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.search.profile.ProfileShardResult;
|
||||
import org.opensearch.search.profile.SearchProfileShardResults;
|
||||
import org.opensearch.search.suggest.Suggest;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -37,11 +37,11 @@ import org.elasticsearch.search.SearchHits;
|
|||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.elasticsearch.search.internal.InternalSearchResponse;
|
||||
import org.elasticsearch.search.profile.ProfileShardResult;
|
||||
import org.elasticsearch.search.profile.SearchProfileShardResults;
|
||||
import org.elasticsearch.search.suggest.Suggest;
|
||||
import org.elasticsearch.search.suggest.completion.CompletionSuggestion;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.search.profile.ProfileShardResult;
|
||||
import org.opensearch.search.profile.SearchProfileShardResults;
|
||||
import org.opensearch.search.suggest.Suggest;
|
||||
import org.opensearch.search.suggest.completion.CompletionSuggestion;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
|
|
@ -24,9 +24,9 @@ import org.elasticsearch.common.xcontent.ToXContentFragment;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.Aggregations;
|
||||
import org.elasticsearch.search.profile.ProfileShardResult;
|
||||
import org.elasticsearch.search.profile.SearchProfileShardResults;
|
||||
import org.elasticsearch.search.suggest.Suggest;
|
||||
import org.opensearch.search.profile.ProfileShardResult;
|
||||
import org.opensearch.search.profile.SearchProfileShardResults;
|
||||
import org.opensearch.search.suggest.Suggest;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -29,9 +29,9 @@ import org.elasticsearch.common.util.concurrent.AtomicArray;
|
|||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.elasticsearch.search.internal.InternalSearchResponse;
|
||||
import org.elasticsearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.transport.RemoteClusterService;
|
||||
import org.opensearch.transport.Transport;
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@ import org.opensearch.action.ActionListener;
|
|||
import org.opensearch.cluster.node.DiscoveryNode;
|
||||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.search.fetch.QueryFetchSearchResult;
|
||||
import org.elasticsearch.search.fetch.ScrollQueryFetchSearchResult;
|
||||
import org.elasticsearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.search.fetch.QueryFetchSearchResult;
|
||||
import org.opensearch.search.fetch.ScrollQueryFetchSearchResult;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.transport.Transport;
|
||||
|
||||
import java.util.function.BiFunction;
|
||||
|
|
|
@ -28,11 +28,11 @@ import org.opensearch.cluster.service.ClusterService;
|
|||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.fetch.FetchSearchResult;
|
||||
import org.elasticsearch.search.fetch.ShardFetchRequest;
|
||||
import org.elasticsearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.elasticsearch.search.query.QuerySearchResult;
|
||||
import org.elasticsearch.search.query.ScrollQuerySearchResult;
|
||||
import org.opensearch.search.fetch.FetchSearchResult;
|
||||
import org.opensearch.search.fetch.ShardFetchRequest;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.search.query.QuerySearchResult;
|
||||
import org.opensearch.search.query.ScrollQuerySearchResult;
|
||||
import org.opensearch.transport.Transport;
|
||||
|
||||
import java.util.function.BiFunction;
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.elasticsearch.common.util.Countable;
|
|||
import org.elasticsearch.common.util.PlainIterator;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
package org.elasticsearch.action.search;
|
||||
|
||||
import org.elasticsearch.search.fetch.ShardFetchSearchRequest;
|
||||
import org.elasticsearch.search.internal.ShardSearchRequest;
|
||||
import org.opensearch.search.fetch.ShardFetchSearchRequest;
|
||||
import org.opensearch.search.internal.ShardSearchRequest;
|
||||
import org.opensearch.tasks.CancellableTask;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
|
||||
|
|
|
@ -35,17 +35,17 @@ import org.elasticsearch.common.util.concurrent.ConcurrentCollections;
|
|||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.opensearch.search.dfs.DfsSearchResult;
|
||||
import org.elasticsearch.search.fetch.FetchSearchResult;
|
||||
import org.elasticsearch.search.fetch.QueryFetchSearchResult;
|
||||
import org.elasticsearch.search.fetch.ScrollQueryFetchSearchResult;
|
||||
import org.elasticsearch.search.fetch.ShardFetchRequest;
|
||||
import org.elasticsearch.search.fetch.ShardFetchSearchRequest;
|
||||
import org.elasticsearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.elasticsearch.search.internal.ShardSearchContextId;
|
||||
import org.elasticsearch.search.internal.ShardSearchRequest;
|
||||
import org.elasticsearch.search.query.QuerySearchRequest;
|
||||
import org.elasticsearch.search.query.QuerySearchResult;
|
||||
import org.elasticsearch.search.query.ScrollQuerySearchResult;
|
||||
import org.opensearch.search.fetch.FetchSearchResult;
|
||||
import org.opensearch.search.fetch.QueryFetchSearchResult;
|
||||
import org.opensearch.search.fetch.ScrollQueryFetchSearchResult;
|
||||
import org.opensearch.search.fetch.ShardFetchRequest;
|
||||
import org.opensearch.search.fetch.ShardFetchSearchRequest;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.search.internal.ShardSearchRequest;
|
||||
import org.opensearch.search.query.QuerySearchRequest;
|
||||
import org.opensearch.search.query.QuerySearchResult;
|
||||
import org.opensearch.search.query.ScrollQuerySearchResult;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.opensearch.transport.RemoteClusterService;
|
||||
import org.opensearch.transport.Transport;
|
||||
|
|
|
@ -63,11 +63,11 @@ import org.elasticsearch.search.SearchShardTarget;
|
|||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.search.internal.AliasFilter;
|
||||
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.opensearch.search.internal.AliasFilter;
|
||||
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.tasks.Task;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
|
|
|
@ -25,8 +25,8 @@ import org.opensearch.Version;
|
|||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.elasticsearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.transport.RemoteClusterAware;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -48,7 +48,7 @@ import org.elasticsearch.index.mapper.MapperService;
|
|||
import org.elasticsearch.index.shard.ShardId;
|
||||
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 java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -115,7 +115,7 @@ import org.opensearch.script.ScriptService;
|
|||
import org.elasticsearch.search.SearchModule;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.FastVectorHighlighter;
|
||||
import org.opensearch.search.fetch.subphase.highlight.FastVectorHighlighter;
|
||||
import org.opensearch.snapshots.InternalSnapshotsInfoService;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
|
|
|
@ -53,27 +53,27 @@ import org.elasticsearch.index.similarity.SimilarityService;
|
|||
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.QueryPhaseExecutionException;
|
||||
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.QueryPhaseExecutionException;
|
||||
import org.opensearch.search.query.QuerySearchResult;
|
||||
import org.opensearch.search.rescore.RescoreContext;
|
||||
import org.opensearch.search.slice.SliceBuilder;
|
||||
import org.opensearch.search.sort.SortAndFormats;
|
||||
import org.elasticsearch.search.suggest.SuggestionSearchContext;
|
||||
import org.opensearch.search.suggest.SuggestionSearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.elasticsearch.search;
|
|||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.io.stream.Writeable;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
@ -29,7 +30,7 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Since {@link org.elasticsearch.search.internal.SearchContext} no longer hold the states of search, the top K results
|
||||
* Since {@link org.opensearch.search.internal.SearchContext} no longer hold the states of search, the top K results
|
||||
* (i.e., documents that will be rescored by query rescorers) need to be serialized/ deserialized between search phases.
|
||||
* A {@link RescoreDocIds} encapsulates the top K results for each rescorer by its ordinal index.
|
||||
*/
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.OpenSearchException;
|
|||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.elasticsearch.search;
|
||||
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.tasks.Task;
|
||||
|
||||
public class SearchContextSourcePrinter {
|
||||
|
|
|
@ -48,7 +48,7 @@ import org.elasticsearch.index.mapper.MapperService;
|
|||
import org.elasticsearch.index.mapper.SourceFieldMapper;
|
||||
import org.elasticsearch.index.seqno.SequenceNumbers;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.HighlightField;
|
||||
import org.opensearch.search.fetch.subphase.highlight.HighlightField;
|
||||
import org.opensearch.search.lookup.SourceLookup;
|
||||
import org.opensearch.transport.RemoteClusterAware;
|
||||
|
||||
|
@ -723,7 +723,7 @@ public final class SearchHit implements Writeable, ToXContentObject, Iterable<Do
|
|||
* This parser outputs a temporary map of the objects needed to create the
|
||||
* SearchHit instead of directly creating the SearchHit. The reason for this
|
||||
* is that this way we can reuse the parser when parsing xContent from
|
||||
* {@link org.elasticsearch.search.suggest.completion.CompletionSuggestion.Entry.Option} which unfortunately inlines
|
||||
* {@link org.opensearch.search.suggest.completion.CompletionSuggestion.Entry.Option} which unfortunately inlines
|
||||
* the output of
|
||||
* {@link #toInnerXContent(XContentBuilder, org.elasticsearch.common.xcontent.ToXContent.Params)}
|
||||
* of the included search hit. The output of the map is used to create the
|
||||
|
|
|
@ -244,22 +244,22 @@ import org.elasticsearch.search.aggregations.pipeline.StatsBucketPipelineAggrega
|
|||
import org.elasticsearch.search.aggregations.pipeline.SumBucketPipelineAggregationBuilder;
|
||||
import org.elasticsearch.search.aggregations.pipeline.SumBucketPipelineAggregator;
|
||||
import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry;
|
||||
import org.elasticsearch.search.fetch.FetchPhase;
|
||||
import org.elasticsearch.search.fetch.FetchSubPhase;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchDocValuesPhase;
|
||||
import org.elasticsearch.search.fetch.subphase.ExplainPhase;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchFieldsPhase;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchScorePhase;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchSourcePhase;
|
||||
import org.elasticsearch.search.fetch.subphase.MatchedQueriesPhase;
|
||||
import org.elasticsearch.search.fetch.subphase.ScriptFieldsPhase;
|
||||
import org.elasticsearch.search.fetch.subphase.SeqNoPrimaryTermPhase;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchVersionPhase;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.FastVectorHighlighter;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase;
|
||||
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.FetchPhase;
|
||||
import org.opensearch.search.fetch.FetchSubPhase;
|
||||
import org.opensearch.search.fetch.subphase.FetchDocValuesPhase;
|
||||
import org.opensearch.search.fetch.subphase.ExplainPhase;
|
||||
import org.opensearch.search.fetch.subphase.FetchFieldsPhase;
|
||||
import org.opensearch.search.fetch.subphase.FetchSourcePhase;
|
||||
import org.opensearch.search.fetch.subphase.MatchedQueriesPhase;
|
||||
import org.opensearch.search.fetch.subphase.FetchScorePhase;
|
||||
import org.opensearch.search.fetch.subphase.ScriptFieldsPhase;
|
||||
import org.opensearch.search.fetch.subphase.SeqNoPrimaryTermPhase;
|
||||
import org.opensearch.search.fetch.subphase.FetchVersionPhase;
|
||||
import org.opensearch.search.fetch.subphase.highlight.FastVectorHighlighter;
|
||||
import org.opensearch.search.fetch.subphase.highlight.HighlightPhase;
|
||||
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.RescorerBuilder;
|
||||
import org.opensearch.search.sort.FieldSortBuilder;
|
||||
|
@ -268,18 +268,18 @@ import org.opensearch.search.sort.ScoreSortBuilder;
|
|||
import org.opensearch.search.sort.ScriptSortBuilder;
|
||||
import org.opensearch.search.sort.SortBuilder;
|
||||
import org.opensearch.search.sort.SortValue;
|
||||
import org.elasticsearch.search.suggest.Suggest;
|
||||
import org.elasticsearch.search.suggest.SuggestionBuilder;
|
||||
import org.elasticsearch.search.suggest.completion.CompletionSuggestion;
|
||||
import org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder;
|
||||
import org.elasticsearch.search.suggest.phrase.Laplace;
|
||||
import org.elasticsearch.search.suggest.phrase.LinearInterpolation;
|
||||
import org.elasticsearch.search.suggest.phrase.PhraseSuggestion;
|
||||
import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder;
|
||||
import org.elasticsearch.search.suggest.phrase.SmoothingModel;
|
||||
import org.elasticsearch.search.suggest.phrase.StupidBackoff;
|
||||
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.SuggestionBuilder;
|
||||
import org.opensearch.search.suggest.completion.CompletionSuggestion;
|
||||
import org.opensearch.search.suggest.completion.CompletionSuggestionBuilder;
|
||||
import org.opensearch.search.suggest.phrase.Laplace;
|
||||
import org.opensearch.search.suggest.phrase.LinearInterpolation;
|
||||
import org.opensearch.search.suggest.phrase.PhraseSuggestion;
|
||||
import org.opensearch.search.suggest.phrase.PhraseSuggestionBuilder;
|
||||
import org.opensearch.search.suggest.phrase.SmoothingModel;
|
||||
import org.opensearch.search.suggest.phrase.StupidBackoff;
|
||||
import org.opensearch.search.suggest.term.TermSuggestion;
|
||||
import org.opensearch.search.suggest.term.TermSuggestionBuilder;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
|
|
@ -22,10 +22,10 @@ package org.elasticsearch.search;
|
|||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.search.fetch.FetchSearchResult;
|
||||
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.internal.ShardSearchContextId;
|
||||
import org.opensearch.search.internal.ShardSearchRequest;
|
||||
import org.opensearch.search.query.QuerySearchResult;
|
||||
import org.opensearch.transport.TransportResponse;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -86,36 +86,36 @@ import org.opensearch.search.builder.SearchSourceBuilder;
|
|||
import org.opensearch.search.collapse.CollapseContext;
|
||||
import org.opensearch.search.dfs.DfsPhase;
|
||||
import org.opensearch.search.dfs.DfsSearchResult;
|
||||
import org.elasticsearch.search.fetch.FetchPhase;
|
||||
import org.elasticsearch.search.fetch.FetchSearchResult;
|
||||
import org.elasticsearch.search.fetch.QueryFetchSearchResult;
|
||||
import org.elasticsearch.search.fetch.ScrollQueryFetchSearchResult;
|
||||
import org.elasticsearch.search.fetch.ShardFetchRequest;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchDocValuesContext;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchFieldsContext;
|
||||
import org.elasticsearch.search.fetch.subphase.ScriptFieldsContext.ScriptField;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
|
||||
import org.elasticsearch.search.internal.AliasFilter;
|
||||
import org.elasticsearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.elasticsearch.search.internal.LegacyReaderContext;
|
||||
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.opensearch.search.fetch.FetchPhase;
|
||||
import org.opensearch.search.fetch.FetchSearchResult;
|
||||
import org.opensearch.search.fetch.QueryFetchSearchResult;
|
||||
import org.opensearch.search.fetch.ScrollQueryFetchSearchResult;
|
||||
import org.opensearch.search.fetch.ShardFetchRequest;
|
||||
import org.opensearch.search.fetch.subphase.FetchDocValuesContext;
|
||||
import org.opensearch.search.fetch.subphase.FetchFieldsContext;
|
||||
import org.opensearch.search.fetch.subphase.ScriptFieldsContext.ScriptField;
|
||||
import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder;
|
||||
import org.opensearch.search.internal.AliasFilter;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.search.internal.LegacyReaderContext;
|
||||
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.lookup.SearchLookup;
|
||||
import org.elasticsearch.search.profile.Profilers;
|
||||
import org.elasticsearch.search.query.QueryPhase;
|
||||
import org.elasticsearch.search.query.QuerySearchRequest;
|
||||
import org.elasticsearch.search.query.QuerySearchResult;
|
||||
import org.elasticsearch.search.query.ScrollQuerySearchResult;
|
||||
import org.opensearch.search.profile.Profilers;
|
||||
import org.opensearch.search.query.QueryPhase;
|
||||
import org.opensearch.search.query.QuerySearchRequest;
|
||||
import org.opensearch.search.query.QuerySearchResult;
|
||||
import org.opensearch.search.query.ScrollQuerySearchResult;
|
||||
import org.opensearch.search.rescore.RescorerBuilder;
|
||||
import org.opensearch.search.searchafter.SearchAfterBuilder;
|
||||
import org.opensearch.search.sort.FieldSortBuilder;
|
||||
import org.opensearch.search.sort.MinAndMax;
|
||||
import org.opensearch.search.sort.SortAndFormats;
|
||||
import org.opensearch.search.sort.SortBuilder;
|
||||
import org.elasticsearch.search.suggest.Suggest;
|
||||
import org.elasticsearch.search.suggest.completion.CompletionSuggestion;
|
||||
import org.opensearch.search.suggest.Suggest;
|
||||
import org.opensearch.search.suggest.completion.CompletionSuggestion;
|
||||
import org.opensearch.threadpool.Scheduler.Cancellable;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.opensearch.threadpool.ThreadPool.Names;
|
||||
|
|
|
@ -23,10 +23,10 @@ import org.apache.lucene.search.Query;
|
|||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.lucene.search.Queries;
|
||||
import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregator;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.elasticsearch.search.profile.query.CollectorResult;
|
||||
import org.elasticsearch.search.profile.query.InternalProfileCollector;
|
||||
import org.elasticsearch.search.query.QueryPhaseExecutionException;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.profile.query.CollectorResult;
|
||||
import org.opensearch.search.profile.query.InternalProfileCollector;
|
||||
import org.opensearch.search.query.QueryPhaseExecutionException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.common.xcontent.DeprecationHandler;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.aggregations.support.AggregationPath;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.sort.SortOrder;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -26,8 +26,8 @@ import org.opensearch.common.breaker.CircuitBreakingException;
|
|||
import org.elasticsearch.indices.breaker.CircuitBreakerService;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.aggregations.support.ValuesSourceConfig;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.elasticsearch.search.query.QueryPhaseExecutionException;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.query.QueryPhaseExecutionException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -39,9 +39,9 @@ import org.elasticsearch.search.aggregations.pipeline.PipelineAggregator;
|
|||
import org.elasticsearch.search.aggregations.pipeline.PipelineAggregator.PipelineTree;
|
||||
import org.elasticsearch.search.aggregations.support.AggregationPath;
|
||||
import org.elasticsearch.search.aggregations.support.AggregationPath.PathElement;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.elasticsearch.search.profile.Profilers;
|
||||
import org.elasticsearch.search.profile.aggregation.ProfilingAggregator;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.profile.Profilers;
|
||||
import org.opensearch.search.profile.aggregation.ProfilingAggregator;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.elasticsearch.search.aggregations;
|
||||
|
||||
import org.elasticsearch.index.query.QueryShardContext;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.elasticsearch.search.aggregations;
|
||||
|
||||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.elasticsearch.search.aggregations.BucketCollector;
|
|||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.LeafBucketCollector;
|
||||
import org.elasticsearch.search.aggregations.MultiBucketCollector;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector;
|
|||
import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregator;
|
||||
import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
|
||||
import org.elasticsearch.search.aggregations.support.AggregationPath;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.sort.SortOrder;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactories;
|
|||
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
|
||||
import org.elasticsearch.search.aggregations.BucketCollector;
|
||||
import org.elasticsearch.search.aggregations.MultiBucketCollector;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.elasticsearch.search.aggregations.BucketCollector;
|
|||
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.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.sort.SortOrder;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.search.aggregations.bucket;
|
|||
|
||||
import org.apache.lucene.util.packed.PackedInts;
|
||||
import org.apache.lucene.util.packed.PackedLongValues;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.elasticsearch.search.aggregations.InternalAggregations;
|
|||
import org.elasticsearch.search.aggregations.LeafBucketCollector;
|
||||
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
|
||||
import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -29,7 +29,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.adjacency.AdjacencyMatrixAggregator.KeyedFilter;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -57,7 +57,7 @@ import org.elasticsearch.search.aggregations.LeafBucketCollector;
|
|||
import org.elasticsearch.search.aggregations.MultiBucketCollector;
|
||||
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
|
||||
import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.searchafter.SearchAfterBuilder;
|
||||
import org.opensearch.search.sort.SortAndFormats;
|
||||
|
||||
|
|
|
@ -30,7 +30,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;
|
||||
|
|
|
@ -30,7 +30,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;
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.elasticsearch.search.aggregations.InternalAggregations;
|
|||
import org.elasticsearch.search.aggregations.LeafBucketCollector;
|
||||
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
|
||||
import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue