public class SimpleDecorate extends Object implements PostFilter
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
controlNonVisibleCharacters |
FILTER_ADJUSTED, FILTER_OK, FILTER_REMOVE
Constructor and Description |
---|
SimpleDecorate() |
Modifier and Type | Method and Description |
---|---|
byte |
filter(Manager m,
SearchRequest srq,
ResultSet results,
int rank,
int docid)
Adds all the metadata for the specified document occurring at the specified
rank to the ResultSet
Called for each result in the resultset, used to filter out unwanted results.
|
void |
new_query(Manager m,
SearchRequest srq,
ResultSet rs)
Called before the processing of a resultset using this PostFilter is applied.
|
protected static final Pattern controlNonVisibleCharacters
public final byte filter(Manager m, SearchRequest srq, ResultSet results, int rank, int docid)
filter
in interface PostFilter
m
- The manager controlling this querysrq
- The search request being processedrank
- which array index (rank) in the resultset have we reacheddocid
- The docid of the currently being procesed result.public void new_query(Manager m, SearchRequest srq, ResultSet rs)
new_query
in interface PostFilter
m
- The manager controlling this querysrq
- The search request being processedrs
- the resultset that is being iterated throughTerrier 4.0. Copyright © 2004-2014 University of Glasgow