com.atlassian.confluence.search.contentnames.lucene
Class ScoringPrefixFilter
java.lang.Object
org.apache.lucene.search.Filter
com.atlassian.confluence.search.contentnames.lucene.ScoringPrefixFilter
- All Implemented Interfaces:
- Serializable
public class ScoringPrefixFilter
- extends org.apache.lucene.search.Filter
Filters by prefix and increments the score for each document that passes the filter.
If a document passes the filter and the document term is exactly the same as the filter term then the score gets an
extra increment.
- 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 |
ScoringPrefixFilter
public ScoringPrefixFilter(org.apache.lucene.index.Term term,
DocumentResultScores resultScores)
- Construct a new filter that will update score in the supplied DocumentScores.
- Parameters:
term
- resultScores
-
ScoringPrefixFilter
public ScoringPrefixFilter(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-2013 Atlassian. All Rights Reserved.