Wow. I can't believe a simple human error can make it so frustrating to
debug.
Finally found the root of my problem. It was in my indice file name. I did
not noticed that I had an extra period after my .rb
Hence it wasn't viewed as a ruby script file. I need glasses.
Thanks for the help to troubleshoot. Much appreciated.
Steve
On Friday, July 12, 2013 12:35:55 PM UTC-4, Steve Loo wrote:
>
> Hey Pat,
>
> Thanks for your response.Yes it is weird that I am getting this issue. I
> did not do anything out of the norm, just using the very basic set up.
>
> Interesting enough, I tried creating a new rails project with bare
> backbones of a User model and SupportGroup models. And I used the same
> configuration and indexes and I had no issue at all.
>
> One question, I believe on running the "rake ts:index", it creates the
> config/development_sphinx.conf by design. I noticed that on the new project
> that works, the development_sphinx.conf contains a whole bunch of extra
> details, such as:
>
> source support_group_core_0
> {
> .....
> }
>
> index support_group_core
> {
> ....
> }
>
> Were this added after a successful ts:index or were they added before the
> ts:index runs?
> I tried to copy this development_sphinx.conf over to try but it didn't
> work. It recreated a new development_sphinx.conf without the extra details.
>
> Steve
>
>
>
>
> On Friday, July 12, 2013 5:53:13 AM UTC-4, Pat Allan wrote:
>>
>> 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.