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:
java.io.Serializable, java.lang.Cloneable

public class BoostingQuery
extends org.apache.lucene.search.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(org.apache.lucene.search.Query contextQuery, SearchQueryParameters searchQueryParameters, BoostingStrategy boostStrategy)
           
 
Method Summary
protected  org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
           
 void extractTerms(java.util.Set terms)
           
 org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
           
 java.lang.String toString(java.lang.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(org.apache.lucene.search.Query contextQuery,
                     SearchQueryParameters searchQueryParameters,
                     BoostingStrategy boostStrategy)
Method Detail

createWeight

protected org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
Overrides:
createWeight in class org.apache.lucene.search.Query

toString

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

extractTerms

public void extractTerms(java.util.Set terms)
Overrides:
extractTerms in class org.apache.lucene.search.Query

rewrite

public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
                                       throws java.io.IOException
Overrides:
rewrite in class org.apache.lucene.search.Query
Throws:
java.io.IOException


Copyright © 2003-2010 Atlassian. All Rights Reserved.