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

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by com.atlassian.confluence.search.contentnames.lucene.ScoringPrefixFilter
All Implemented Interfaces:
java.io.Serializable

public class ScoringPrefixFilter
extends org.apache.lucene.search.Filter

Filters by prefix and increments the score for each document that passes the filter.

If a document passes the filter and the document term is exactly the same as the filter term then the score gets an extra increment.

See Also:
Serialized Form

Constructor Summary
ScoringPrefixFilter(org.apache.lucene.index.Term term, DocumentResultScores resultScores)
          Construct a new filter that will update score in the supplied DocumentScores.
 
Method Summary
 java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoringPrefixFilter

public ScoringPrefixFilter(org.apache.lucene.index.Term term,
                           DocumentResultScores resultScores)
Construct a new filter that will update score in the supplied DocumentScores.

Parameters:
term -
resultScores -
Method Detail

bits

public java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
                      throws java.io.IOException
Specified by:
bits in class org.apache.lucene.search.Filter
Throws:
java.io.IOException


Copyright © 2003-2010 Atlassian. All Rights Reserved.