java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.queries.spans.SpanQuery
org.elasticsearch.lucene.queries.SpanMatchNoDocsQuery
public class SpanMatchNoDocsQuery
extends org.apache.lucene.queries.spans.SpanQuery
A
SpanQuery
that matches no documents.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.queries.spans.SpanWeight
createWeight
(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) boolean
getField()
int
hashCode()
void
visit
(org.apache.lucene.search.QueryVisitor visitor) Methods inherited from class org.apache.lucene.queries.spans.SpanQuery
getTermStates, getTermStates
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
SpanMatchNoDocsQuery
-
-
Method Details
-
getField
- Specified by:
getField
in classorg.apache.lucene.queries.spans.SpanQuery
-
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
-
createWeight
public org.apache.lucene.queries.spans.SpanWeight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException - Specified by:
createWeight
in classorg.apache.lucene.queries.spans.SpanQuery
- Throws:
IOException
-