On 9/1/06, Michael Leung <[EMAIL PROTECTED]> wrote:
> Heya Jens,
>
> Actually, I'm having the problem where no records get returned, when I
> query for the full number: 123-45-55555 for example.
>
> M.

Hi Michael,

It works here in version 0.10.1;

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'ferret'
=> false
irb(main):003:0> include Ferret
=> Object
irb(main):004:0> i = I.new
=> #<Index>
irb(main):005:0> i << {:content => "the phone number is 123-45-55555"}
=> nil
irb(main):006:0> i.search("content:123-45-55555")
=> #<struct Ferret::Search::TopDocs total_hits=1, hits=[#<struct
Ferret::Search::Hit doc=0, score=0.1534264087677>],
max_score=0.1534264087677>
irb(main):007:0>


I put a bug-fix for this in version 0.10.1. I think it is fixed in
0.9.6 too but I can't remember for certain. You're better off
upgrading to 0.10.1, especially if you are using acts_as_ferret (since
most of the work has already been done for you).

Cheers,
Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to