Hi Sam
You're using 'define_indexes' instead of 'define_index' in your model - change
the method name, and run it again (though I recommend not using sudo - you'll
hit permissions issues that way).
Cheers
--
Pat
On 27/12/2010, at 8:28 AM, Sam G. Daniel wrote:
> I did a search of this group for the error message and still couldn't
> resolve the issue. I'm using Thinking-Sphinx 1.4.1, Ruby 1.8.7, Rails
> 2.3.9
>
> The error message I when I run "sudo rake thinking_sphinx:index" is
>
> (in /Users/samgdaniel/Dropbox/Rails/donorvillage)
> Generating Configuration to /Users/samgdaniel/Dropbox/Rails/
> donorvillage/config/development.sphinx.conf
> Sphinx 0.9.9-release (r2117)
> Copyright (c) 2001-2009, Andrew Aksyonoff
>
> using config file '/Users/samgdaniel/Dropbox/Rails/donorvillage/config/
> development.sphinx.conf'...
> FATAL: no indexes found in config file '/Users/samgdaniel/Dropbox/
> Rails/donorvillage/config/development.sphinx.conf'
>
> My model is donor.rb:
>
> class Donor < ActiveRecord::Base
>
> validates_presence_of :first_name, :last_name
>
> has_many :addresses, :dependent => :destroy
> has_many :donations, :dependent => :destroy
> has_many :phones, :dependent => :destroy
> has_many :emails, :dependent => :destroy
>
>
> accepts_nested_attributes_for :addresses, :donations, :phones, :emails
>
> def self.find_donors
> find(:all, :order => "last_name")
> end
>
> define_indexes do
> indexes first_name
> end
>
> end
>
> My development.sphinx.conf is
>
> indexer
> {
> }
>
> searchd
> {
> listen = 127.0.0.1:9312
> log = /Users/samgdaniel/Dropbox/Rails/donorvillage/log/searchd.log
> query_log = /Users/samgdaniel/Dropbox/Rails/donorvillage/log/
> searchd.query.log
> pid_file = /Users/samgdaniel/Dropbox/Rails/donorvillage/log/
> searchd.development.pid
> }
>
> I've been trying to figure out what I'm doing wrong.
>
> Thanks,
>
> Sam
>
> --
> 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.