FilteredQuery offers you a way to apply a filter to a specific query. The FilteredQuery would then by added to a BooleanQuery to be combined with other queries. There is not much point in passing a FilteredQuery directly to a Searcher#search method unless you are applying more than one filter since the search method also takes a filter as a parameter.
Create a new FilteredQuery which filters query with filter.
static VALUE frb_fqq_init(VALUE self, VALUE rquery, VALUE rfilter) { Query *sq, *q; Filter *f; Data_Get_Struct(rquery, Query, sq); Data_Get_Struct(rfilter, Filter, f); q = fq_new(sq, f); REF(sq); REF(f); Frt_Wrap_Struct(self, &frb_fqq_mark, &frb_q_free, q); object_add(q, self); return self; }
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.