Displaying 3 results from an estimated 3 matches for "bit_vector".
2006 Oct 20
0
Ferret 0.10.13 released
...itions 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
mf[:category] = category_filter
mf[:country] = country...
2006 Sep 20
3
Range searches some times they work, some times not...
Hi i''m using ferret to enable geographical postcode. I take a postcode
and distance in miles from the user, strip off the outcode and then
retrieve the associated x y coordinates in metres from the db. Then i
get two temp x''s and y''s and search for all results that are within the
box, see code below.
Problems start to occur when i search on big distances so for
2006 May 11
6
problem with solaris install
I was trying to install ferret 0.9.2 on solaris (SunOS 5.8) which
does not have a sys/dir.h
nix_io.c:5:21: sys/dir.h: No such file or directory
make: *** [nix_io.o] Error 1
I couldn''t find an obvious way around this... any suggestions?
Thanks,
Rich Marisa
Cornell Information Technologies
Cornell University