On 7/19/06, Jordan Frank <[EMAIL PROTECTED]> wrote:
> On 7/17/06, Gary Elliott <[EMAIL PROTECTED]> wrote:
> <snip/>
> So I index a bunch of documents, and see the following line of output:
> Adding field latitude_string with value '004915010' to index
> So that is the encoded version of 49.1501.
> Now if I do the following query, I should get this record back:
> >> Person.ferret_index.search_each("latitude_string:['000000000'
> >> '099999999']")
> => 0
irb(main):008:0> index.search("latitude:[000000000 099999999]").size
=> 1
irb(main):009:0> index.search("latitude:['000000000' '099999999']").size
=> 0
The quotes are getting tokenized with the terms so the problem is that
"'0099999999'" <= '004915010'
Perhaps you already worked that out.
Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk