public class SiteFilter extends Object implements PostFilter
Modifier and Type | Field and Description |
---|---|
protected String |
site |
FILTER_ADJUSTED, FILTER_OK, FILTER_REMOVE
Constructor and Description |
---|
SiteFilter() |
Modifier and Type | Method and Description |
---|---|
byte |
filter(Manager m,
SearchRequest srq,
ResultSet rs,
int rank,
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.
|
protected String site
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 throughpublic byte filter(Manager m, SearchRequest srq, ResultSet rs, 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.Terrier 4.0. Copyright © 2004-2014 University of Glasgow