Displaying 1 result from an estimated 1 matches for "multifilter".
Did you mean:
multifile
2006 Oct 20
0
Ferret 0.10.13 released
...0.10.12, it was a bad build).
There are two interesting additions to this release. You can now
access the Filter#bits method of the built in filters so you can can
use them in your own code, possibly within your own custom filters.
For example you could implement a custom filter like so:
class MultiFilter < Hash
def bits(index_reader)
bit_vector = Ferret::Utils::BitVector.new.not!
filters = self.values
filters.each {|filter| bit_vector.and!(filter.bits(index_reader))}
bit_vector
end
end
And you would use it like this:
mf = MultiFilter.new...