Class 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SpanMatchNoDocsQuery

        public SpanMatchNoDocsQuery​(java.lang.String field,
                                    java.lang.String reason)
    • Method Detail

      • getField

        public java.lang.String getField()
        Specified by:
        getField in class org.apache.lucene.search.spans.SpanQuery
      • toString

        public java.lang.String toString​(java.lang.String field)
        Specified by:
        toString in class org.apache.lucene.search.Query
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in class org.apache.lucene.search.Query
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class org.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 class org.apache.lucene.search.spans.SpanQuery
        Throws:
        java.io.IOException