Module org.elasticsearch.server
Class NoRewriteMatchNoDocsQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.common.lucene.search.NoRewriteMatchNoDocsQuery
public class NoRewriteMatchNoDocsQuery
extends org.apache.lucene.search.Query
A MatchNoDocsQuery that will not be recognised by Lucene's core rewriting rules,
useful for protecting the unified highlighter against rewriting. See
https://issues.apache.org/jira/browse/LUCENE-10454 for an explanation.
-
Constructor Summary
-
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
-
NoRewriteMatchNoDocsQuery
-
-
Method Details
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
toString
- Specified by:
toString
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
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-