com.atlassian.confluence.search.v2.lucene.boosting
Class BoostingQuery
java.lang.Object
org.apache.lucene.search.Query
com.atlassian.confluence.search.v2.lucene.boosting.BoostingQuery
- All Implemented Interfaces:
- Serializable, Cloneable
public class BoostingQuery
- extends Query
This is a wrapping query, which takes a BoostingStrategy
to
boost scores for documents which match the underlying query.
- See Also:
- Serialized Form
BoostingQuery
public BoostingQuery(Query contextQuery,
SearchQueryParameters searchQueryParameters,
BoostingStrategy boostStrategy)
createWeight
protected Weight createWeight(Searcher searcher)
- Overrides:
createWeight
in class Query
toString
public String toString(String field)
- Specified by:
toString
in class Query
extractTerms
public void extractTerms(Set terms)
- Overrides:
extractTerms
in class Query
rewrite
public Query rewrite(IndexReader reader)
throws IOException
- Overrides:
rewrite
in class Query
- Throws:
IOException