public class Scope extends Object implements PostFilter
|Constructor and Description|
|Modifier and Type||Method and Description|
Called for each result in the resultset, used to filter out unwanted results, based on the presence of some strings in the document number.
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)
public byte filter(Manager m, SearchRequest srq, ResultSet rs, int rank, int docid)
m- The manager controlling this query
srq- The search request being processed
rs- the resultset that is being iterated through
rank- the array index in the resultset have we reached
docid- The document number of the currently being procesed result.
Terrier Information Retrieval Platform4.2. Copyright © 2004-2016, University of Glasgow