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.Weight
createWeight
(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) boolean
int
hashCode()
void
visit
(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:
createWeight
in classorg.apache.lucene.search.Query
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Specified by:
visit
in classorg.apache.lucene.search.Query
-