This definitely is not how it should be working...
Is this problem on production or development? What version of Thinking Sphinx
are you using?
--
Pat
On 01/02/2010, at 2:46 AM, necker wrote:
> I have a model Horse. This model has (according to TS) an attribute
> named public (it has boolean value). I added delta indexing. normal
> one which works with flags. Everything works fine untill i want to add
> to my Horse.search method additional condition:
> :with => {:public => 1}. Horse.search doesnt find anything then. if
> would though rebuild my index it finds results.
> the procedure goes like this: i create a horse. it has delta flag set
> to true. and than the user sets horse's priority to public.
> and if i dont rebuild it wont find it. i have some associations to and
> they all work fine. the problem is in adding additional condition on
> my search. then i get no results. what am i doing wrong?
>
> in my model:
>
> define_index do
> #fields:
> indexes :name
> indexes tasks.description, :as => :task_description
> indexes [user.first_name, user.last_name], :as => :user_name
> #attributes:
> has public
> #delta:
> set_property :delta => true
> end
>
> in my controller:
>
> @sphinx_searched_horses = Horse.search params[:search1], :with =>
> {:public => 1}
>
> --
> 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.