com.atlassian.confluence.search.v2.lucene.query
Class BoostByModificationDateStrategy

java.lang.Object
  extended by com.atlassian.confluence.search.v2.lucene.query.BoostByModificationDateStrategy
All Implemented Interfaces:
BoostStrategy

public class BoostByModificationDateStrategy
extends java.lang.Object
implements BoostStrategy

A BoostStrategy that boost the scores based on the modification date of scored document. Recently modified Document get a higher boost.


Constructor Summary
BoostByModificationDateStrategy()
           
 
Method Summary
 float boost(org.apache.lucene.index.IndexReader reader, int doc, float score)
          Apply a relevant boost to the specified document with the specified score
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoostByModificationDateStrategy

public BoostByModificationDateStrategy()
Method Detail

boost

public float boost(org.apache.lucene.index.IndexReader reader,
                   int doc,
                   float score)
            throws java.io.IOException
Description copied from interface: BoostStrategy
Apply a relevant boost to the specified document with the specified score

Specified by:
boost in interface BoostStrategy
Parameters:
reader - a reader instance associated with the current scoring process
doc - the doc id
score - the original score for the document specified by doc
Returns:
the boosted score
Throws:
java.io.IOException


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.