Displaying 1 result from an estimated 1 matches for "category_filt".
Did you mean:
category_filter
2006 Oct 20
0
Ferret 0.10.13 released
...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
mf[:category] = category_filter
mf[:country] = country_filter
# run the query with the filter
index.search(query, :filter => mf)
# filters can be changed and deleted
mf[:category] = new_category_filter
mf.delete(:country)
index.search(query, :filter => mf)
The other major addition is a Mappi...