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
     
  • 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
     
     
    int
     
     

    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(String field, String reason)
  • Method Details

    • getField

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

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

      public boolean equals(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 IOException
      Specified by:
      createWeight in class org.apache.lucene.search.spans.SpanQuery
      Throws:
      IOException