Class: Ferret::Search::Filter

Inherits:
Object
  • Object
show all
Defined in:
ext/r_search.c

Overview

Summary

A Filter is used to filter query results. It is usually passed to one of Searcher’s search methods however it can also be used inside a ConstantScoreQuery or a FilteredQuery. To implement your own Filter you must implement the method #get_bitvector(index_reader) which returns a BitVector with set bits corresponding to documents that are allowed by this Filter.

TODO add support for user implemented Filter. TODO add example of user implemented Filter.