Package org.apache.lucene.queries
Class SpanMatchNoDocsQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.spans.SpanQuery
org.apache.lucene.queries.SpanMatchNoDocsQuery
public class SpanMatchNoDocsQuery
extends org.apache.lucene.search.spans.SpanQuery
A
SpanQuery
that matches no documents.-
Constructor Summary
Constructors Constructor Description SpanMatchNoDocsQuery(java.lang.String field, java.lang.String reason)
-
Method Summary
Modifier and Type Method Description org.apache.lucene.search.spans.SpanWeight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
boolean
equals(java.lang.Object o)
java.lang.String
getField()
int
hashCode()
java.lang.String
toString(java.lang.String field)
Methods inherited from class org.apache.lucene.search.spans.SpanQuery
getTermStates, getTermStates
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, visit
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
SpanMatchNoDocsQuery
public SpanMatchNoDocsQuery(java.lang.String field, java.lang.String reason)
-
-
Method Details
-
getField
public java.lang.String getField()- Specified by:
getField
in classorg.apache.lucene.search.spans.SpanQuery
-
toString
public java.lang.String toString(java.lang.String field)- Specified by:
toString
in classorg.apache.lucene.search.Query
-
equals
public boolean equals(java.lang.Object o)- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
createWeight
public org.apache.lucene.search.spans.SpanWeight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws java.io.IOException- Specified by:
createWeight
in classorg.apache.lucene.search.spans.SpanQuery
- Throws:
java.io.IOException
-