public interface PostFilter
Modifier and Type | Field and Description |
---|---|
static byte |
FILTER_ADJUSTED
The score for this result has been adjusted, please ensure the
resultset is re-sorted
|
static byte |
FILTER_OK
This result should be included in the resultset
|
static byte |
FILTER_REMOVE
This result should not be included in the resultset
|
Modifier and Type | Method and Description |
---|---|
byte |
filter(Manager m,
SearchRequest srq,
ResultSet results,
int DocAtNumber,
int docid)
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.
|
static final byte FILTER_OK
static final byte FILTER_REMOVE
static final byte FILTER_ADJUSTED
void new_query(Manager m, SearchRequest srq, ResultSet rs)
m
- The manager controlling this querysrq
- The search request being processedrs
- the resultset that is being iterated throughbyte filter(Manager m, SearchRequest srq, ResultSet results, int DocAtNumber, int docid)
m
- The manager controlling this querysrq
- The search request being processedDocAtNumber
- which array index (rank) in the resultset have we reacheddocid
- The docid of the currently being procesed result.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow