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 PostFilterm - 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 PostFilterm - The manager controlling this querysrq - The search request being processedrs - the resultset that is being iterated throughTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow