Thinking Sphinx Problem

6 views
Skip to first unread message

Karthikeyan A.K

unread,
Jun 19, 2012, 9:07:51 AM6/19/12
to rubyonra...@googlegroups.com
Hi,

I am using Thinking Sphinx version 2.0.11 in one of my project. To create an index I ran rake thinking_sphinx:index and I got the following error

Generating Configuration to /home/saidev/Ubuntu One/burgundy/ssearch/config/development.sphinx.conf
rake aborted!
At least one field is necessary for an index

Tasks: TOP => thinking_sphinx:index
(See full trace by running task with --trace)

This is the first time I am using Sphinx on Rails. Any help?




Ewelina Lis

unread,
Jun 19, 2012, 9:21:29 AM6/19/12
to rubyonra...@googlegroups.com
It's hard to tell. It looks like you don't have anything defined in define_index. 

If you have

define_index do
indexes name
end

in your model and it doesn't work
try to tests

indexes "''", :as => :empty

and try then.

I found everything there. They have good documentation
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/cosIlhwbbf4J.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Karthikeyan A.K

unread,
Jun 20, 2012, 4:18:47 AM6/20/12
to rubyonra...@googlegroups.com
We got it! Thanks. We Installed Sphinx from Ubuntu repository thatn from downloading it from the Sphinx page.
--
Nothing is constant

Regards

A.K.Karthikeyan
Reply all
Reply to author
Forward
0 new messages