Hi Chris
This shouldn't be any different, but can you try subject as a symbol instead:
define_index do
indexes :subject
end
Just in case some other library's inserting a subject method into the global
scope.
--
Pat
On 21/09/2011, at 4:42 AM, internetchris wrote:
> Hi Group,
>
> I'm trying to implement TS in my Rails 2.3.5 app. I watched the
> screencast and hoped it would be pretty straight forward. I have a
> "Chat" model and in the model I defined a single index..
>
> define_index do
> indexes subject
> end
>
>
> when I run rake ts:index I get the following error.
>
> Generating Configuration to /Users/Chris/rails/myapp/config/
> development.sphinx.conf
> rake aborted!
> At least one field is necessary for an index
>
> I even tried passing the rails environment to the rake task but
> without luck. This field indeed exists in my DB. For the heck of it I
> also tried it on another model using the "first_name" field of my User
> model and go the same error.
>
> Environment:
>
> Rails 2.3.5
> Thinking Sphinx v1.4.7
> Mysql db
>
> Any suggestions would be happily appreciated.
>
> Thanks!
>
> Chris
>
>
>
>
> --
> 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.