In Files

Methods

Class Index [+]

Quicksearch

Ferret::Search::FilteredQuery

Summary

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.

Public Class Methods

new(query, filter) → query click to toggle source

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.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.