Class MatchCostQuery

java.lang.Object
org.apache.lucene.search.Query
org.apache.solr.search.MatchCostQuery

public class MatchCostQuery extends org.apache.lucene.search.Query
Wraps a Query to customize the TwoPhaseIterator.matchCost().
  • Constructor Summary

    Constructors
    Constructor
    Description
    MatchCostQuery(org.apache.lucene.search.Query delegate, float matchCost)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.search.Weight
    createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
     
    boolean
    equals(Object other)
     
    int
     
    org.apache.lucene.search.Query
    rewrite(org.apache.lucene.search.IndexSearcher searcher)
     
     
    void
    visit(org.apache.lucene.search.QueryVisitor visitor)
     

    Methods inherited from class org.apache.lucene.search.Query

    classHash, sameClassAs, toString

    Methods inherited from class java.lang.Object

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

    • MatchCostQuery

      public MatchCostQuery(org.apache.lucene.search.Query delegate, float matchCost)
  • Method Details

    • toString

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

      public void visit(org.apache.lucene.search.QueryVisitor visitor)
      Specified by:
      visit in class org.apache.lucene.search.Query
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in class org.apache.lucene.search.Query
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.lucene.search.Query
    • rewrite

      public org.apache.lucene.search.Query rewrite(org.apache.lucene.search.IndexSearcher searcher) throws IOException
      Overrides:
      rewrite in class org.apache.lucene.search.Query
      Throws:
      IOException
    • 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 class org.apache.lucene.search.Query
      Throws:
      IOException