com.atlassian.confluence.search.contentnames.lucene
Class ScoringTermFilter
java.lang.Object
org.apache.lucene.search.Filter
com.atlassian.confluence.search.contentnames.lucene.BaseScoringFilter
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.