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:
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.
ScoringTermFilter(org.apache.lucene.index.Term term, DocumentResultScores resultScores, byte scorePerMatch)
          Construct a new ScoringTermFilter that will modify the supplied scores.
 
Method Summary
 BitSet bits(org.apache.lucene.index.IndexReader reader)
           
 
Methods inherited from class org.apache.lucene.search.Filter
getDocIdSet
 
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 -

ScoringTermFilter

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

Parameters:
term - the Term to filter against.
resultScores -
scorePerMatch - number of points per match
Method Detail

bits

public BitSet bits(org.apache.lucene.index.IndexReader reader)
            throws IOException
Overrides:
bits in class org.apache.lucene.search.Filter
Throws:
IOException


Copyright © 2003-2011 Atlassian. All Rights Reserved.