Just a quick note to say I've noticed this happens for ANY
associations, not only HABTM. I've tried to add indices like:

indexes user.id, :as => :user_id

and after rebuild, no results are found. If I comment out the line and
rebuild, there they are again.

And strangely enough, searching using ThinkingSphinx.search works just
fine...

On Nov 17, 5:49 pm, Alex Deva <[email protected]> wrote:
> I've got a Content that habtm Areas. The index looks like this:
>
>   define_index do
>     indexes title, :sortable => true
>     indexes body
>     indexes areas(:name), :as => :area_name, :sortable => true
>
>     has created_at
>   end
>
> After I rebuild the index and restart Sphinx, I get no results even
> for a simple Content.search, just an empty array.
>
> If I simply comment the line that indexes areas(:name), search
> instantly works and finds stuff.
>
> What am I doing wrong?

-- 
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.

Reply via email to