Package org.apache.solr.search
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 aQuery
to customize theTwoPhaseIterator.matchCost()
.
-
-
Constructor Summary
Constructors Constructor Description MatchCostQuery(org.apache.lucene.search.Query delegate, float matchCost)
-
Method Summary
All Methods Instance Methods Concrete Methods 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
hashCode()
org.apache.lucene.search.Query
rewrite(org.apache.lucene.index.IndexReader reader)
String
toString(String field)
void
visit(org.apache.lucene.search.QueryVisitor visitor)
-
-
-
Method Detail
-
toString
public String toString(String field)
- Specified by:
toString
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
-
equals
public boolean equals(Object other)
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
- Overrides:
rewrite
in classorg.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 classorg.apache.lucene.search.Query
- Throws:
IOException
-
-