com.atlassian.confluence.search.v2.lucene.boosting
Class BoostingQuery

java.lang.Object
  extended by org.apache.lucene.search.Query
      extended by 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

Constructor Summary
BoostingQuery(Query contextQuery, SearchQueryParameters searchQueryParameters, BoostingStrategy boostStrategy)
           
 
Method Summary
protected  Weight createWeight(Searcher searcher)
           
 void extractTerms(Set terms)
           
 Query rewrite(IndexReader reader)
           
 String toString(String field)
           
 
Methods inherited from class org.apache.lucene.search.Query
clone, combine, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoostingQuery

public BoostingQuery(Query contextQuery,
                     SearchQueryParameters searchQueryParameters,
                     BoostingStrategy boostStrategy)
Method Detail

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


Confluence is developed by Atlassian.