Hi Steve

I'm not really sure why you're hitting this issue… but a few things to tweak:

* You don't need either of the *_binary_name settings, given you're using the 
standard names.
* config/sphinx.yml should be config/thinking_sphinx.yml (sphinx.yml is for 
pre-v3 Thinking Sphinx).

Your index definition looks fine to me… I presume all columns you're referring 
to exist (though if that wasn't the case, there should still be an index, just 
an invalid one).

If you're happy to share the code, you're welcome to zip it up and email it to 
me off-list, I can try and reproduce the issue and then see if I can fix it. 
Something particularly odd must be happening...

-- 
Pat

On 12/07/2013, at 1:44 PM, Steve Loo wrote:

> I am fairly new to TS and have spent hours trying to figure this error 
> message but without any success.
> Any help will be greatly appreciated.
> 
> My environment:
> Mac OSX
> Ruby 1.9.3
> Rails 3.2.13
> Sphinx 2.0.6-release (r3473)
> Thinking Sphinx 3.0.4
> 
> config/development.sphinx.conf:
> 
> indexer
> {
> }
> 
> searchd
> {
>   listen = 127.0.0.1:9306:mysql41
>   log = /Users/sloo/RailsApps/onestopmedic/log/development.searchd.log
>   query_log = 
> /Users/sloo/RailsApps/onestopmedic/log/development.searchd.query.log
>   pid_file = /Users/sloo/RailsApps/onestopmedic/log/development.sphinx.pid
>   workers = threads
>   binlog_path = /Users/sloo/RailsApps/onestopmedic/tmp/binlog/development
> }
> 
> config/sphinx.yml:
> 
> development:
>   bin_path: "/opt/local/bin"
>   searchd_binary_name: searchd
>   indexer_binary_name: indexer
>   mysql41: 9312
> test:
>     mysql41: 9313
> production:
>     mysql41: 9312 
> 
> 
> Model:
> class SupportGroup < ActiveRecord::Base
>   belongs_to :user
>   belongs_to :group_category
>    .....
> 
> 
> app/indices/support_group_index.rb : 
> 
> ThinkingSphinx::Index.define :support_group, :with => :active_record do
>   indexes name, description, detail
> 
>   has group_category_id, created_at
>   where "status = 'approved'"
> end
> 
> When I tried to run 
>    rake ts:index 
> 
> I get the following error message:
> 
> using config file '......./config/development.sphinx.conf'...
> FATAL: no indexes found in config file '....../config/development.sphinx.conf'
> 
> I have tried all different 'solutions' but still could not resolve issue.
> 
> Thanks for your input.
> 
> 
> 
> -- 
> 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.
>  
>  


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