Class | Ferret::Search::FilteredQuery |
In: |
ext/r_search.c
|
Parent: | Ferret::Search::Query |
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.