com.atlassian.confluence.search.contentnames.lucene
Class ScoringTermFilter
java.lang.Object
org.apache.lucene.search.Filter
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
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 |
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
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-2012 Atlassian. All Rights Reserved.