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

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

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

Filters by a particular term, and increments the score for each document that passes the filter.

See Also:
Serialized Form

Constructor Summary
ScoringTermFilter(org.apache.lucene.index.Term term, DocumentResultScores resultScores)
          Construct a new ScoringTermFilter that will modify the supplied scores.
 
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

ScoringTermFilter

public ScoringTermFilter(org.apache.lucene.index.Term term,
                         DocumentResultScores resultScores)
Construct a new ScoringTermFilter that will modify the supplied scores.

Parameters:
term - the Term to filter against.
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.