com.browseengine.bobo.query
Class FacetBasedBoostScorerBuilder

java.lang.Object
  extended by com.browseengine.bobo.query.FacetBasedBoostScorerBuilder
All Implemented Interfaces:
ScorerBuilder

public class FacetBasedBoostScorerBuilder
extends Object
implements ScorerBuilder


Field Summary
protected  Map<String,Map<String,Float>> _boostMaps
           
protected  FacetTermScoringFunctionFactory _scoringFunctionFactory
           
 
Constructor Summary
  FacetBasedBoostScorerBuilder(Map<String,Map<String,Float>> boostMaps)
           
protected FacetBasedBoostScorerBuilder(Map<String,Map<String,Float>> boostMaps, FacetTermScoringFunctionFactory scoringFunctionFactory)
           
 
Method Summary
 org.apache.lucene.search.Scorer createScorer(org.apache.lucene.search.Scorer innerScorer, org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)
           
 org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader indexReader, int docid, org.apache.lucene.search.Explanation innerExplaination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_boostMaps

protected final Map<String,Map<String,Float>> _boostMaps

_scoringFunctionFactory

protected final FacetTermScoringFunctionFactory _scoringFunctionFactory
Constructor Detail

FacetBasedBoostScorerBuilder

public FacetBasedBoostScorerBuilder(Map<String,Map<String,Float>> boostMaps)

FacetBasedBoostScorerBuilder

protected FacetBasedBoostScorerBuilder(Map<String,Map<String,Float>> boostMaps,
                                       FacetTermScoringFunctionFactory scoringFunctionFactory)
Method Detail

createScorer

public org.apache.lucene.search.Scorer createScorer(org.apache.lucene.search.Scorer innerScorer,
                                                    org.apache.lucene.index.IndexReader reader,
                                                    boolean scoreDocsInOrder,
                                                    boolean topScorer)
                                             throws IOException
Specified by:
createScorer in interface ScorerBuilder
Throws:
IOException

explain

public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader indexReader,
                                                    int docid,
                                                    org.apache.lucene.search.Explanation innerExplaination)
                                             throws IOException
Specified by:
explain in interface ScorerBuilder
Throws:
IOException


Copyright © 2011. All Rights Reserved.