Hi all, I know there has to be a simple answer for this.. I'm brand new to 
thinking sphinx and I believe I have everything setup, but when I try to 
use the line "@servers = Server.search(params[:search], :ranker => 
:proximity, :match_mode => :any)" in my controller, I get the error 
"undefined method `search' for #<Class:0x0000001f482690>" on the web page. 
 Everything works fine when I remove the Server.search call.

Here is a bit of output from my rake commands, I don't believe the 
deprecation warning is the root of my problem:

rake ts:index
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! 
Support for these plugins will be removed in Rails 4.0. Move them out and 
bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* 
and config/initializers/myplugin.rb. See the release notes for more on 
this: 
http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. 
(called from <top (required)> at /var/www/inventory/Rakefile:10)
Generating configuration to 
/var/www/inventory/config/development.sphinx.conf
Sphinx 2.0.8-id64-release (r3831)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/var/www/inventory/config/development.sphinx.conf'...
indexing index 'server_core'...
collected 365 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 365 docs, 11221 bytes
total 0.457 sec, 24518 bytes/sec, 797.54 docs/sec
total 3 reads, 0.000 sec, 9.3 kb/call avg, 0.0 msec/call avg
total 9 writes, 0.000 sec, 6.2 kb/call avg, 0.0 msec/call avg


rake ts:start
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! 
Support for these plugins will be removed in Rails 4.0. Move them out and 
bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* 
and config/initializers/myplugin.rb. See the release notes for more on 
this: 
http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. 
(called from <top (required)> at /var/www/inventory/Rakefile:10)
Started searchd successfully (pid: 25269).


This is my server_index.rb file:

ThinkingSphinx::Index.define :server, :with => :active_record do
  indexes ipaddress, hostname, virtual
end


Please let me know if posting any other configs would be beneficial, any 
help would be appreciated.  I've been stuck on this for quite a while now..

Steve


-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to