[Rename] refactor o.e.search package top level classes in the server module. (#328)
Rename `org.elasticserach.search` to `org.opensearch.search` in package names and references for top level classes in the search package. Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
d244850fdd
commit
91e9ba952f
|
@ -27,8 +27,8 @@ import org.opensearch.action.support.ActionFilters;
|
|||
import org.opensearch.action.support.HandledTransportAction;
|
||||
import org.opensearch.common.inject.Inject;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.search.profile.SearchProfileShardResults;
|
||||
|
|
|
@ -41,7 +41,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.opensearch.rest.action.document.RestBulkAction;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.hamcrest.Matcher;
|
||||
import org.hamcrest.Matchers;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.elasticsearch.action.index.IndexRequest;
|
|||
import org.elasticsearch.action.search.SearchRequest;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.opensearch.rest.action.document.RestBulkAction;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.function.Function;
|
||||
|
|
|
@ -49,8 +49,8 @@ import org.elasticsearch.common.xcontent.XContentType;
|
|||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.core.internal.io.IOUtils;
|
||||
import org.elasticsearch.ingest.Pipeline;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchModule;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchModule;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
import org.elasticsearch.test.rest.ESRestTestCase;
|
||||
import org.junit.AfterClass;
|
||||
|
|
|
@ -93,7 +93,7 @@ import org.opensearch.script.Script;
|
|||
import org.opensearch.script.ScriptType;
|
||||
import org.opensearch.script.mustache.MultiSearchTemplateRequest;
|
||||
import org.opensearch.script.mustache.SearchTemplateRequest;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
import org.opensearch.search.Scroll;
|
||||
import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
|
||||
import org.opensearch.search.aggregations.support.ValueType;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
|
|
|
@ -74,7 +74,7 @@ import org.opensearch.index.rankeval.PrecisionAtK;
|
|||
import org.opensearch.index.rankeval.RecallAtK;
|
||||
import org.opensearch.join.aggregations.ChildrenAggregationBuilder;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.Aggregation;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.opensearch.search.aggregations.matrix.stats.MatrixStatsAggregationBuilder;
|
||||
|
|
|
@ -60,7 +60,7 @@ import org.opensearch.script.mustache.MultiSearchTemplateResponse;
|
|||
import org.opensearch.script.mustache.MultiSearchTemplateResponse.Item;
|
||||
import org.opensearch.script.mustache.SearchTemplateRequest;
|
||||
import org.opensearch.script.mustache.SearchTemplateResponse;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.elasticsearch.search.aggregations.BucketOrder;
|
||||
import org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregation;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.index.query.MatchAllQueryBuilder;
|
|||
import org.elasticsearch.index.query.MatchQueryBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
import org.opensearch.rest.action.RestActions;
|
||||
import org.elasticsearch.search.SearchModule;
|
||||
import org.opensearch.search.SearchModule;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
|
|||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.opensearch.rest.action.RestActions;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -80,9 +80,9 @@ import org.opensearch.script.mustache.MultiSearchTemplateResponse;
|
|||
import org.opensearch.script.mustache.MultiSearchTemplateResponse.Item;
|
||||
import org.opensearch.script.mustache.SearchTemplateRequest;
|
||||
import org.opensearch.script.mustache.SearchTemplateResponse;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.Scroll;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.Aggregation;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.elasticsearch.search.aggregations.Aggregations;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.common.io.stream.StreamOutput;
|
|||
import org.elasticsearch.common.xcontent.ToXContent;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.index.query.QueryShardContext;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilder;
|
||||
import org.elasticsearch.search.aggregations.AggregatorFactories;
|
||||
import org.elasticsearch.search.aggregations.AggregatorFactory;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.opensearch.common.lease.Releasables;
|
|||
import org.elasticsearch.common.util.BigArrays;
|
||||
import org.elasticsearch.common.util.ObjectArray;
|
||||
import org.elasticsearch.index.fielddata.NumericDoubleValues;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
import org.elasticsearch.search.aggregations.Aggregator;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.LeafBucketCollector;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
package org.opensearch.search.aggregations.matrix.stats;
|
||||
|
||||
import org.elasticsearch.index.query.QueryShardContext;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
import org.elasticsearch.search.aggregations.AggregationExecutionException;
|
||||
import org.elasticsearch.search.aggregations.Aggregator;
|
||||
import org.elasticsearch.search.aggregations.AggregatorFactories;
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.opensearch.search.aggregations.matrix.stats;
|
|||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
import org.opensearch.search.aggregations.support.ValueType;
|
||||
import org.opensearch.search.aggregations.support.ValuesSourceType;
|
||||
import org.opensearch.search.aggregations.support.ArrayValuesSourceAggregationBuilder;
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.opensearch.search.aggregations.support;
|
|||
|
||||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.elasticsearch.index.fielddata.NumericDoubleValues;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
import org.opensearch.search.aggregations.support.ValuesSource;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.elasticsearch.index.query.functionscore.ScriptScoreFunctionBuilder;
|
|||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
|
||||
import org.opensearch.search.aggregations.metrics.Stats;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.script.expression;
|
|||
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.elasticsearch.index.fielddata.IndexFieldData;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.lucene.search.DoubleValues;
|
|||
import org.elasticsearch.index.fielddata.LeafNumericFieldData;
|
||||
import org.elasticsearch.index.fielddata.IndexFieldData;
|
||||
import org.elasticsearch.index.fielddata.NumericDoubleValues;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Calendar;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.script.expression;
|
|||
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.elasticsearch.index.fielddata.IndexFieldData;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
import org.joda.time.ReadableDateTime;
|
||||
|
||||
/**
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.lucene.search.DoubleValues;
|
|||
import org.elasticsearch.index.fielddata.LeafNumericFieldData;
|
||||
import org.elasticsearch.index.fielddata.IndexFieldData;
|
||||
import org.elasticsearch.index.fielddata.NumericDoubleValues;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
import org.joda.time.DateTimeZone;
|
||||
import org.joda.time.MutableDateTime;
|
||||
import org.joda.time.ReadableDateTime;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.apache.lucene.search.DoubleValues;
|
|||
import org.elasticsearch.index.fielddata.LeafNumericFieldData;
|
||||
import org.elasticsearch.index.fielddata.IndexFieldData;
|
||||
import org.elasticsearch.index.fielddata.NumericDoubleValues;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.script.expression;
|
|||
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.elasticsearch.index.fielddata.IndexFieldData;
|
||||
import org.elasticsearch.search.MultiValueMode;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
|
||||
/**
|
||||
* Expressions API for numeric fields.
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.opensearch.common.bytes.BytesArray;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.opensearch.rest.RestRequest;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
import org.opensearch.search.Scroll;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.StreamsUtils;
|
||||
|
|
|
@ -29,8 +29,8 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
|
|||
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.elasticsearch.test.AbstractXContentTestCase;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.opensearch.painless.action.PainlessExecuteAction.Request.ContextSetup
|
|||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.SearchModule;
|
||||
import org.opensearch.search.SearchModule;
|
||||
import org.elasticsearch.test.AbstractWireSerializingTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.action.search.SearchRequestBuilder;
|
|||
import org.elasticsearch.action.search.SearchResponse;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.elasticsearch.search.aggregations.bucket.terms.Terms;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.opensearch.index.fielddata.SortedBinaryDocValues;
|
|||
import org.opensearch.index.fielddata.SortedNumericDoubleValues;
|
||||
import org.opensearch.index.fielddata.plain.SortedNumericIndexFieldData;
|
||||
import org.opensearch.index.query.QueryShardContext;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.opensearch.search.aggregations.support.ValuesSourceType;
|
||||
import org.opensearch.search.lookup.SearchLookup;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.elasticsearch.action.update.UpdateResponse;
|
|||
import org.opensearch.client.Requests;
|
||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.bucket.terms.Terms;
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.elasticsearch.index.query.QueryBuilder;
|
|||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.elasticsearch.search.aggregations.bucket.filter.Filter;
|
||||
import org.elasticsearch.search.aggregations.bucket.global.Global;
|
||||
|
|
|
@ -33,8 +33,8 @@ import org.opensearch.script.MockScriptEngine;
|
|||
import org.opensearch.script.MockScriptPlugin;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder;
|
||||
import org.opensearch.search.sort.FieldSortBuilder;
|
||||
import org.opensearch.search.sort.SortBuilders;
|
||||
|
|
|
@ -55,7 +55,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import static org.elasticsearch.search.SearchService.ALLOW_EXPENSIVE_QUERIES;
|
||||
import static org.opensearch.search.SearchService.ALLOW_EXPENSIVE_QUERIES;
|
||||
|
||||
/**
|
||||
* A query builder for {@code has_child} query.
|
||||
|
|
|
@ -46,7 +46,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import static org.elasticsearch.search.SearchService.ALLOW_EXPENSIVE_QUERIES;
|
||||
import static org.opensearch.search.SearchService.ALLOW_EXPENSIVE_QUERIES;
|
||||
|
||||
/**
|
||||
* Builder for the 'has_parent' query.
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.elasticsearch.index.query.QueryBuilder;
|
|||
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.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.fetch.subphase.InnerHitsContext;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.opensearch.join.mapper.ParentJoinFieldMapper;
|
|||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
||||
import static org.elasticsearch.search.SearchService.ALLOW_EXPENSIVE_QUERIES;
|
||||
import static org.opensearch.search.SearchService.ALLOW_EXPENSIVE_QUERIES;
|
||||
|
||||
public final class ParentIdQueryBuilder extends AbstractQueryBuilder<ParentIdQueryBuilder> {
|
||||
public static final String NAME = "parent_id";
|
||||
|
|
|
@ -94,7 +94,7 @@ import java.util.function.Supplier;
|
|||
|
||||
import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg;
|
||||
import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg;
|
||||
import static org.elasticsearch.search.SearchService.ALLOW_EXPENSIVE_QUERIES;
|
||||
import static org.opensearch.search.SearchService.ALLOW_EXPENSIVE_QUERIES;
|
||||
|
||||
public class PercolateQueryBuilder extends AbstractQueryBuilder<PercolateQueryBuilder> {
|
||||
public static final String NAME = "percolate";
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.apache.lucene.search.QueryVisitor;
|
|||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.document.DocumentField;
|
||||
import org.opensearch.common.text.Text;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.fetch.FetchContext;
|
||||
import org.opensearch.search.fetch.FetchSubPhase;
|
||||
import org.opensearch.search.fetch.FetchSubPhaseProcessor;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.lucene.search.TotalHits;
|
|||
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.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.fetch.FetchContext;
|
||||
import org.opensearch.search.fetch.FetchSubPhase.HitContext;
|
||||
import org.opensearch.search.fetch.FetchSubPhaseProcessor;
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.elasticsearch.index.mapper.ParseContext;
|
|||
import org.elasticsearch.index.query.QueryShardContext;
|
||||
import org.elasticsearch.index.query.TermQueryBuilder;
|
||||
import org.elasticsearch.mock.orig.Mockito;
|
||||
import org.elasticsearch.search.SearchModule;
|
||||
import org.opensearch.search.SearchModule;
|
||||
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.opensearch.common.io.stream.StreamOutput;
|
|||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -22,8 +22,8 @@ package org.opensearch.index.rankeval;
|
|||
import org.opensearch.common.io.stream.NamedWriteable;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.opensearch.index.rankeval.RatedDocument.DocumentKey;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.opensearch.common.io.stream.StreamOutput;
|
|||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.opensearch.common.io.stream.StreamOutput;
|
|||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.opensearch.common.io.stream.StreamOutput;
|
|||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.common.xcontent.ToXContent;
|
|||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.opensearch.common.io.stream.StreamOutput;
|
|||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.elasticsearch.common.xcontent.XContentType;
|
|||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.opensearch.transport.TransportService;
|
||||
|
|
|
@ -33,8 +33,8 @@ import org.elasticsearch.common.xcontent.XContentType;
|
|||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.elasticsearch.common.xcontent.ToXContent;
|
|||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -32,8 +32,8 @@ import org.elasticsearch.common.xcontent.XContentType;
|
|||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -31,8 +31,8 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -32,8 +32,8 @@ import org.elasticsearch.common.xcontent.XContentType;
|
|||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -40,9 +40,9 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchParseException;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchParseException;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -32,7 +32,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.search.SearchModule;
|
||||
import org.opensearch.search.SearchModule;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.elasticsearch.common.xcontent.ToXContent;
|
|||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -31,8 +31,8 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.elasticsearch.index.reindex.ScrollableHitSource.BasicHit;
|
|||
import org.elasticsearch.index.reindex.ScrollableHitSource.Hit;
|
||||
import org.elasticsearch.index.reindex.ScrollableHitSource.Response;
|
||||
import org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHits;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
|
|
@ -77,8 +77,8 @@ import org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure;
|
|||
import org.elasticsearch.index.reindex.WorkerBulkByScrollTaskState;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
|
|
|
@ -39,8 +39,8 @@ import org.elasticsearch.common.unit.TimeValue;
|
|||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.index.reindex.ClientScrollableHitSource;
|
||||
import org.elasticsearch.index.reindex.ScrollableHitSource;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.opensearch.index.mapper.MapperService;
|
|||
import org.opensearch.index.mapper.Uid;
|
||||
import org.opensearch.index.shard.IndexShard;
|
||||
import org.opensearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.opensearch.search.SearchService;
|
||||
import org.opensearch.search.internal.AliasFilter;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.ShardSearchRequest;
|
||||
|
|
|
@ -49,7 +49,7 @@ import org.opensearch.index.mapper.ObjectMapper;
|
|||
import org.opensearch.index.query.MatchAllQueryBuilder;
|
||||
import org.opensearch.index.shard.ShardId;
|
||||
import org.opensearch.indices.IndicesService;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.opensearch.search.SearchService;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.search.internal.AliasFilter;
|
||||
import org.opensearch.search.internal.ShardSearchRequest;
|
||||
|
|
|
@ -38,8 +38,8 @@ import org.opensearch.common.lease.Releasables;
|
|||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
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.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.AliasFilter;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.elasticsearch.action.search;
|
||||
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.apache.lucene.search.FieldComparator;
|
|||
import org.apache.lucene.search.FieldDoc;
|
||||
import org.apache.lucene.search.SortField;
|
||||
import org.apache.lucene.search.TopFieldDocs;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.elasticsearch.search.SearchSortValuesAndFormats;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.opensearch.search.SearchSortValuesAndFormats;
|
||||
|
||||
/**
|
||||
* Utility class to keep track of the bottom doc's sort values in a distributed search.
|
||||
|
|
|
@ -24,8 +24,8 @@ import org.opensearch.action.ActionListener;
|
|||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.routing.GroupShardsIterator;
|
||||
import org.opensearch.common.lease.Releasable;
|
||||
import org.elasticsearch.search.SearchService.CanMatchResponse;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchService.CanMatchResponse;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.search.internal.AliasFilter;
|
||||
import org.opensearch.search.sort.FieldSortBuilder;
|
||||
|
|
|
@ -20,8 +20,8 @@ package org.elasticsearch.action.search;
|
|||
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
|
||||
/**
|
||||
* This is a simple base class to simplify fan out to shards and collect their results. Each results passed to
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
package org.elasticsearch.action.search;
|
||||
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.dfs.AggregatedDfs;
|
||||
import org.opensearch.search.dfs.DfsSearchResult;
|
||||
import org.opensearch.search.query.QuerySearchRequest;
|
||||
|
|
|
@ -25,9 +25,9 @@ import org.elasticsearch.index.query.BoolQueryBuilder;
|
|||
import org.elasticsearch.index.query.InnerHitBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.search.collapse.CollapseBuilder;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
|
|
|
@ -25,9 +25,9 @@ import org.apache.lucene.search.ScoreDoc;
|
|||
import org.opensearch.action.OriginalIndices;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.search.RescoreDocIds;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.RescoreDocIds;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.dfs.AggregatedDfs;
|
||||
import org.opensearch.search.fetch.FetchSearchResult;
|
||||
import org.opensearch.search.fetch.ShardFetchSearchRequest;
|
||||
|
|
|
@ -30,8 +30,8 @@ import org.opensearch.common.lease.Releasable;
|
|||
import org.opensearch.common.lease.Releasables;
|
||||
import org.elasticsearch.common.lucene.search.TopDocsAndMaxScore;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContextBuilder;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
package org.elasticsearch.action.search;
|
||||
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
|
||||
/**
|
||||
* A base action listener that ensures shard target and shard index is set on all responses
|
||||
|
|
|
@ -29,8 +29,8 @@ import org.opensearch.common.io.stream.NamedWriteableRegistry;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.AliasFilter;
|
||||
import org.opensearch.transport.RemoteClusterAware;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.logging.log4j.Logger;
|
|||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.routing.GroupShardsIterator;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.search.dfs.AggregatedDfs;
|
||||
import org.opensearch.search.dfs.DfsSearchResult;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.action.search;
|
|||
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.elasticsearch.node.ResponseCollectorService;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.query.QuerySearchResult;
|
||||
import org.opensearch.transport.Transport;
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.opensearch.action.OriginalIndices;
|
|||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.lease.Releasable;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.search.internal.ShardSearchRequest;
|
||||
|
|
|
@ -38,11 +38,11 @@ import org.opensearch.common.breaker.CircuitBreaker;
|
|||
import org.opensearch.common.collect.HppcMaps;
|
||||
import org.opensearch.common.io.stream.NamedWriteableRegistry;
|
||||
import org.elasticsearch.common.lucene.search.TopDocsAndMaxScore;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchService;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.elasticsearch.action.search;
|
||||
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ import org.apache.logging.log4j.message.ParameterizedMessage;
|
|||
import org.apache.lucene.search.TotalHits;
|
||||
import org.elasticsearch.action.search.SearchResponse.Clusters;
|
||||
import org.opensearch.cluster.routing.GroupShardsIterator;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -24,8 +24,8 @@ import org.apache.lucene.search.TopFieldDocs;
|
|||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.routing.GroupShardsIterator;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.AliasFilter;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.internal.ShardSearchRequest;
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.opensearch.common.io.stream.StreamInput;
|
|||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.xcontent.ToXContent;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
import org.opensearch.search.Scroll;
|
||||
import org.opensearch.search.builder.PointInTimeBuilder;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
|
|
|
@ -26,9 +26,10 @@ import org.elasticsearch.common.Nullable;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
import org.opensearch.script.Script;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
import org.opensearch.search.Scroll;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilder;
|
||||
import org.elasticsearch.search.aggregations.PipelineAggregationBuilder;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.builder.PointInTimeBuilder;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.search.collapse.CollapseBuilder;
|
||||
|
@ -209,7 +210,7 @@ public class SearchRequestBuilder extends ActionRequestBuilder<SearchRequest, Se
|
|||
}
|
||||
|
||||
/**
|
||||
* Should each {@link org.elasticsearch.search.SearchHit} be returned with an
|
||||
* Should each {@link org.opensearch.search.SearchHit} be returned with an
|
||||
* explanation of the hit (ranking).
|
||||
*/
|
||||
public SearchRequestBuilder setExplain(boolean explain) {
|
||||
|
@ -218,7 +219,7 @@ public class SearchRequestBuilder extends ActionRequestBuilder<SearchRequest, Se
|
|||
}
|
||||
|
||||
/**
|
||||
* Should each {@link org.elasticsearch.search.SearchHit} be returned with its
|
||||
* Should each {@link org.opensearch.search.SearchHit} be returned with its
|
||||
* version.
|
||||
*/
|
||||
public SearchRequestBuilder setVersion(boolean version) {
|
||||
|
@ -227,7 +228,7 @@ public class SearchRequestBuilder extends ActionRequestBuilder<SearchRequest, Se
|
|||
}
|
||||
|
||||
/**
|
||||
* Should each {@link org.elasticsearch.search.SearchHit} be returned with the
|
||||
* Should each {@link org.opensearch.search.SearchHit} be returned with the
|
||||
* sequence number and primary term of the last modification of the document.
|
||||
*/
|
||||
public SearchRequestBuilder seqNoAndPrimaryTerm(boolean seqNoAndPrimaryTerm) {
|
||||
|
|
|
@ -36,8 +36,8 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.elasticsearch.common.xcontent.XContentParser.Token;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.opensearch.rest.action.RestActions;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.Aggregations;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
|
@ -221,7 +221,7 @@ public class SearchResponse extends ActionResponse implements StatusToXContentOb
|
|||
}
|
||||
|
||||
/**
|
||||
* If scrolling was enabled ({@link SearchRequest#scroll(org.elasticsearch.search.Scroll)}, the
|
||||
* If scrolling was enabled ({@link SearchRequest#scroll(org.opensearch.search.Scroll)}, the
|
||||
* scroll id that can be used to continue scrolling.
|
||||
*/
|
||||
public String getScrollId() {
|
||||
|
|
|
@ -32,9 +32,9 @@ import org.elasticsearch.action.search.SearchResponse.Clusters;
|
|||
import org.elasticsearch.action.search.TransportSearchAction.SearchTimeProvider;
|
||||
import org.elasticsearch.common.lucene.search.TopDocsAndMaxScore;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchHit;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.elasticsearch.action.search;
|
|||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.xcontent.ToXContentFragment;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.opensearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.Aggregations;
|
||||
import org.opensearch.search.profile.ProfileShardResult;
|
||||
import org.opensearch.search.profile.SearchProfileShardResults;
|
||||
|
|
|
@ -27,8 +27,8 @@ import org.opensearch.cluster.node.DiscoveryNodes;
|
|||
import org.elasticsearch.common.Nullable;
|
||||
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.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.opensearch.cluster.node.DiscoveryNode;
|
|||
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.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.fetch.FetchSearchResult;
|
||||
import org.opensearch.search.fetch.ShardFetchRequest;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.elasticsearch.common.unit.TimeValue;
|
|||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
import org.opensearch.search.Scroll;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.elasticsearch.action.search;
|
|||
import org.opensearch.action.ActionRequestBuilder;
|
||||
import org.opensearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
import org.opensearch.search.Scroll;
|
||||
|
||||
/**
|
||||
* A search scroll action request builder.
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.elasticsearch.common.unit.TimeValue;
|
|||
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.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
|
|
@ -32,8 +32,8 @@ import org.opensearch.common.io.stream.StreamInput;
|
|||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.util.concurrent.ConcurrentCollections;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchService;
|
||||
import org.opensearch.search.dfs.DfsSearchResult;
|
||||
import org.opensearch.search.fetch.FetchSearchResult;
|
||||
import org.opensearch.search.fetch.QueryFetchSearchResult;
|
||||
|
@ -63,7 +63,7 @@ import java.util.Objects;
|
|||
import java.util.function.BiFunction;
|
||||
|
||||
/**
|
||||
* An encapsulation of {@link org.elasticsearch.search.SearchService} operations exposed through
|
||||
* An encapsulation of {@link org.opensearch.search.SearchService} operations exposed through
|
||||
* transport.
|
||||
*/
|
||||
public class SearchTransportService {
|
||||
|
|
|
@ -32,8 +32,8 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.search.SearchException;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchException;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.transport.RemoteClusterAware;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -57,9 +57,9 @@ import org.opensearch.index.Index;
|
|||
import org.opensearch.index.query.Rewriteable;
|
||||
import org.opensearch.index.shard.ShardId;
|
||||
import org.opensearch.indices.breaker.CircuitBreakerService;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchService;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||
import org.opensearch.search.builder.SearchSourceBuilder;
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.apache.lucene.store.ByteArrayDataInput;
|
|||
import org.apache.lucene.store.RAMOutputStream;
|
||||
import org.opensearch.Version;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.search.SearchPhaseResult;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
import org.opensearch.transport.RemoteClusterAware;
|
||||
|
|
|
@ -112,8 +112,8 @@ import org.opensearch.plugins.PluginsService;
|
|||
import org.opensearch.repositories.fs.FsRepository;
|
||||
import org.opensearch.rest.BaseRestHandler;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.elasticsearch.search.SearchModule;
|
||||
import org.elasticsearch.search.SearchService;
|
||||
import org.opensearch.search.SearchModule;
|
||||
import org.opensearch.search.SearchService;
|
||||
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
|
||||
import org.opensearch.search.fetch.subphase.highlight.FastVectorHighlighter;
|
||||
import org.opensearch.snapshots.InternalSnapshotsInfoService;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.lucene.search.ScoreMode;
|
|||
import org.opensearch.common.breaker.CircuitBreaker;
|
||||
import org.opensearch.common.breaker.CircuitBreakingException;
|
||||
import org.elasticsearch.indices.breaker.CircuitBreakerService;
|
||||
import org.elasticsearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
|
||||
import org.opensearch.search.internal.SearchContext;
|
||||
import org.opensearch.search.query.QueryPhaseExecutionException;
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.elasticsearch.common.util.ObjectArray;
|
|||
import org.elasticsearch.index.fielddata.SortedBinaryDocValues;
|
||||
import org.elasticsearch.index.mapper.MappedFieldType;
|
||||
import org.elasticsearch.index.mapper.StringFieldType;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.elasticsearch.search.aggregations.LeafBucketCollector;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -46,7 +46,7 @@ import org.apache.lucene.util.Bits;
|
|||
import org.apache.lucene.util.RoaringDocIdSet;
|
||||
import org.opensearch.common.lease.Releasables;
|
||||
import org.elasticsearch.index.IndexSortConfig;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.elasticsearch.search.aggregations.Aggregator;
|
||||
import org.elasticsearch.search.aggregations.AggregatorFactories;
|
||||
import org.elasticsearch.search.aggregations.BucketCollector;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.lucene.index.IndexReader;
|
|||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.util.BigArrays;
|
||||
import org.elasticsearch.index.mapper.MappedFieldType;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.opensearch.search.aggregations.support.ValuesSource;
|
||||
import org.opensearch.search.sort.SortOrder;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.elasticsearch.index.mapper.MappedFieldType;
|
||||
import org.elasticsearch.index.query.QueryShardContext;
|
||||
import org.opensearch.script.Script;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
|
||||
import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
|
||||
import org.elasticsearch.search.aggregations.bucket.histogram.DateIntervalConsumer;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.common.util.BitArray;
|
|||
import org.elasticsearch.common.util.DoubleArray;
|
||||
import org.elasticsearch.index.fielddata.SortedNumericDoubleValues;
|
||||
import org.elasticsearch.index.mapper.MappedFieldType;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.elasticsearch.search.aggregations.LeafBucketCollector;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
|
|||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.index.mapper.MappedFieldType;
|
||||
import org.elasticsearch.index.query.QueryShardContext;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.opensearch.search.DocValueFormat;
|
||||
import org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource;
|
||||
import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
|
||||
import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue