com.atlassian.confluence.search.contentnames.lucene
Class FieldLengthScoreNormaliser

java.lang.Object
  extended by com.atlassian.confluence.search.contentnames.lucene.FieldLengthScoreNormaliser

public class FieldLengthScoreNormaliser
extends java.lang.Object

Normalise scores in a supplied DocumentResultScores based on the length of the field this normaliser is constructed for. The normalisation values are cached based on the IndexReader used.


Constructor Summary
FieldLengthScoreNormaliser(java.lang.String field)
           
 
Method Summary
 DocumentResultScores normalise(org.apache.lucene.index.IndexReader reader, DocumentResultScores scores)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldLengthScoreNormaliser

public FieldLengthScoreNormaliser(java.lang.String field)
Method Detail

normalise

public DocumentResultScores normalise(org.apache.lucene.index.IndexReader reader,
                                      DocumentResultScores scores)


Copyright © 2003-2010 Atlassian. All Rights Reserved.