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 processed result.
Terrier Information Retrieval Platform 5.0. Copyright © 2004-2018, University of Glasgow