public class Scope extends Object implements PostFilter
FILTER_ADJUSTED, FILTER_OK, FILTER_REMOVE
Constructor and Description |
---|
Scope() |
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,
based on the presence of some strings in the document number.
|
void |
new_query(Manager m,
SearchRequest srq,
ResultSet rs)
Creates a HashSet of scopes that can are allowed to
be in the document number prefix.
|
public void new_query(Manager m, SearchRequest srq, ResultSet rs)
new_query
in interface PostFilter
m
- Manager the manager used for processing the request.srq
- SearchRequest the search request to process.rs
- ResultSet the result set for the search request.public 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 processedrs
- the resultset that is being iterated throughrank
- the array index in the resultset have we reacheddocid
- The document number of the currently being procesed result.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow