To remedy this I propose that the QueryFilter API be changed to something like:
public class SearchParameters {
public BooleanQuery getQuery();
public void setQuery(BooleanQuery clauses);public Filter getFilter(); public void setFilter(Filter filter);
public Sort getSort(); public void getSort(Sort sort); }
public interface QueryFilter {
SearchParameters filter(Query input, SearchParameters output)
throws QueryException;
}If no one objects I will make this change and update all QueryFilters in SVN. Then I will add a SortQueryFilter that permits clauses like "sort:date", and a DateRangeQueryFilter that uses Lucene's RangeFilter (generally much more efficient than a RangeQuery).
Thoughts?
Doug
