Hi Piotr
This is an odd problem... in your test app, you've definitely run rake
ts:rebuild after adding the attributes to the index? What's the output of:
Product.search(:with => {:cost => 1.5..5.5}).results
Cheers
--
Pat
On 29/11/2010, at 11:39 PM, Piotr Sarnacki wrote:
> Hi,
>
> In my application I use that way of searching:
>
> Product.search(:with => {:cost => 1.5..5.5})
>
> After upgrading to newest thinking sphinx, it stopped working
> (previously I used really old sphinx, it was vendored in vendor/
> plugins and almost never updated). I have created simple application
> with one model to check that:
>
> class Product < ActiveRecord::Base
> define_index do
> indexes :title
> has :cost
> has :position
> end
> end
>
> cost is decimal field and position is integer. Searching for cost
> using ranges always returns 0 results. Searching for position works
> great.
>
> Is there anything that I should change after upgrade to make it work?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/thinking-sphinx?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en.