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.BaseScoringFilter
          extended by com.atlassian.confluence.search.contentnames.lucene.ScoringTermFilter

public class ScoringTermFilter
extends BaseScoringFilter

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


Field Summary
 
Fields inherited from class com.atlassian.confluence.search.contentnames.lucene.BaseScoringFilter
resultScores
 
Constructor Summary
ScoringTermFilter(org.apache.lucene.index.Term term)
          Construct a new ScoringTermFilter that will modify the supplied scores.
ScoringTermFilter(org.apache.lucene.index.Term term, byte scorePerMatch)
          Construct a new ScoringTermFilter that will modify the supplied scores.
 
Method Summary
 org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs)
           
 
Methods inherited from class com.atlassian.confluence.search.contentnames.lucene.BaseScoringFilter
setResultScores
 
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)
Construct a new ScoringTermFilter that will modify the supplied scores.

Parameters:
term - the Term to filter against.

ScoringTermFilter

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

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

getDocIdSet

public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
                                                     org.apache.lucene.util.Bits acceptDocs)
                                              throws java.io.IOException
Specified by:
getDocIdSet in class org.apache.lucene.search.Filter
Throws:
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.