public class

ScoringPrefixFilter

extends Filter
java.lang.Object
   ↳ org.apache.lucene.search.Filter
     ↳ com.atlassian.confluence.search.contentnames.lucene.ScoringPrefixFilter

Class Overview

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.

Summary

Public Constructors
ScoringPrefixFilter(Term term, DocumentResultScores resultScores)
Construct a new filter that will update score in the supplied DocumentScores.
ScoringPrefixFilter(Term term, DocumentResultScores resultScores, byte scorePerMatch)
Construct a new ScoringTermFilter that will modify the supplied scores.
Public Methods
BitSet bits(IndexReader reader)
[Expand]
Inherited Methods
From class org.apache.lucene.search.Filter
From class java.lang.Object

Public Constructors

public ScoringPrefixFilter (Term term, DocumentResultScores resultScores)

Construct a new filter that will update score in the supplied DocumentScores.

public ScoringPrefixFilter (Term term, DocumentResultScores resultScores, 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

Public Methods

public BitSet bits (IndexReader reader)

Throws
IOException