com.browseengine.bobo.query
Class RecencyBoostScorerBuilder

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

public class RecencyBoostScorerBuilder
extends Object
implements ScorerBuilder


Constructor Summary
RecencyBoostScorerBuilder(String timeFacetName, float maxFactor, long from, long cutoff, TimeUnit timeunit)
           
RecencyBoostScorerBuilder(String timeFacetName, float maxFactor, long cutoff, TimeUnit timeunit)
           
 
Method Summary
protected  float computeTimeFactor(long timeVal)
           
 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 reader, int doc, org.apache.lucene.search.Explanation innerExplaination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecencyBoostScorerBuilder

public RecencyBoostScorerBuilder(String timeFacetName,
                                 float maxFactor,
                                 long cutoff,
                                 TimeUnit timeunit)

RecencyBoostScorerBuilder

public RecencyBoostScorerBuilder(String timeFacetName,
                                 float maxFactor,
                                 long from,
                                 long cutoff,
                                 TimeUnit timeunit)
Method Detail

explain

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

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

computeTimeFactor

protected float computeTimeFactor(long timeVal)


Copyright © 2011. All Rights Reserved.