java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.index.shard.ShardSplittingQuery
public final class ShardSplittingQuery
extends org.apache.lucene.search.Query
A query that selects all docs that do NOT belong in the current shards this query is executed on.
It can be used to split a shard into N shards marking every document that doesn't belong into the shard
as deleted. See
IndexWriter.deleteDocuments(Query...)-
Constructor Summary
ConstructorsConstructorDescriptionShardSplittingQuery(IndexMetadata indexMetadata, int shardId, boolean hasNested) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) booleaninthashCode()voidvisit(org.apache.lucene.search.QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
ShardSplittingQuery
-
-
Method Details
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) - Overrides:
createWeightin classorg.apache.lucene.search.Query
-
toString
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
equals
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Specified by:
visitin classorg.apache.lucene.search.Query
-