Hi Arash
Thanks for pointing that out - it got fixed a while ago, so it's definitely not
the case in 1.3.x.
Cheers
--
Pat
On 26/06/2010, at 10:06 AM, gmoniey wrote:
> Hi Pat,
>
> Not sure if anyone has reported this bug. For some reason, if I
> include pagination options in my search, total_entries returns nil. If
> I don't then it behaves as expected.
>
>>> a = User.search('i dont exist', {:star => true, :with => {:deleted => 0}})
> Querying Sphinx: *i* *dont* *exist*
> => []
>>> a.total_entries
> => 0
>>> a = User.search('i do not exist', {:star => true, :per_page => 15, :page =>
>>> 1, :order => 'asc', :with => {:deleted => 0}})
> Querying Sphinx: *i* *do* *not* *exist*
> => []
>>> a.total_entries
> => nil
>
> The workaround is a simple nil check, so its not a critical issue;
> just figured you should know.
>
> I'm using version 1.2.11 (been meaning to upgrade, but I figured I
> would do it when I upgrade to rails 3)
>
> Thanks.
>
> arash
>
> --
> 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.