Loading...

thinking-sphinx@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [ts] NoMethodError: undefined method `constantize' for 0:Fixnum Arun Kumar Nachimuthu Fri Feb 03 11:13:36 2012

here is the output for the second command


{3922178124=>"CachedCv", 1273912828=>"Invention", 765557111=>"User",
3502178354=>"Inventor", 642995056=>"Email", 2001272654=>"Member",
1008032517=>"InventionRequest", 1516878456=>"SalesforceContact",
134992153=>"SalesforceOrganization"}


But I got an error for the first command

NoMethodError: undefined method `define_indexes' for ThinkingSphinx:Module
from (irb):1


Regards,
Kumar



On Mon, Jan 23, 2012 at 5:43 PM, Pat Allan <[EMAIL PROTECTED]> wrote:

>
> Huh, right… that's not what I was expecting with this error. Interesting…
>
> Okay, can you try the following in script/console on your staging server:
>
>  ThinkingSphinx.define_indexes
>  ThinkingSphinx::Configuration.instance.models_by_crc
>
> What's the output of the second command?
>
> --
> Pat
>
> On 23/01/2012, at 7:50 PM, Arun Kumar Nachimuthu wrote:
>
> > We do not use STI in any of our indexed models.
> >
> > Regards,
> > Kumar
> >
> >
> >
> > On Sun, Jan 22, 2012 at 10:43 AM, Pat Allan <[EMAIL PROTECTED]>
> wrote:
> >
> > And are any of your models using STI? If so, are there any NULL values
> in their type column?
> >
> > --
> > Pat
> >
> > On 22/01/2012, at 4:08 PM, Arun Kumar Nachimuthu wrote:
> >
> > > Yes. We use ruby 1.8.7 REE and mysql 5.1 in both dev and staging.
> > >
> > >
> > > Regards,
> > > Kumar
> > >
> > >
> > >
> > > On Sun, Jan 22, 2012 at 10:05 AM, Pat Allan <[EMAIL PROTECTED]>
> wrote:
> > >
> > > Are you using the same versions of Ruby in dev and staging? And the
> same databases?
> > >
> > > --
> > > Pat
> > >
> > > On 19/01/2012, at 8:45 PM, Arun Kumar Nachimuthu wrote:
> > >
> > > > I face an issue only with my staging environment. This does not
> happen
> > > > in my dev mode.
> > > >
> > > > When I try to use ThinkingSphinx.search(term), I get a traceback like
> > > > the
> > > >
> > > > following:
> > > >
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 934:in `class_from_crc'
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 913:in `instances_from_matches'
> > > > [GEM_ROOT]/gems/activesupport-2.3.11/lib/active_support/
> > > > ordered_hash.rb:115:in `each'
> > > > [GEM_ROOT]/gems/activesupport-2.3.11/lib/active_support/
> > > > ordered_hash.rb:115:in `each'
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 911:in `instances_from_matches'
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 434:in `compose_results'
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 424:in `populate'
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 562:in `call'
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 562:in `retry_on_stale_index'
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 404:in `populate'
> > > > [GEM_ROOT]/gems/thinking-sphinx-1.4.11/lib/thinking_sphinx/search.rb:
> > > > 167:in `method_missing'
> > > >
> > > >
> > > > My environment:
> > > >  * rails (2.3.11)
> > > >  * riddle (1.5.1) as a gem
> > > >  * thinking-sphinx (1.4.11) as a gem
> > > >  * sphinx (2.0.3)
> > > >
> > > > Here is my sphinx.yml
> > > >
> > > > development:
> > > >    stopwords: <%= RAILS_ROOT%>/config/stopwords.txt
> > > >    mem_limit: 1024M
> > > >    min_word_len: 3
> > > >    max_matches: 30000
> > > >    max_filter_values: 300000
> > > >
> > > > staging:
> > > >    config_file: ../../sphinx_index/staging/sphinx.conf
> > > >    searchd_file_path: ../../sphinx_index/staging/
> > > >    stopwords: <%= RAILS_ROOT%>/config/stopwords.txt
> > > >    mem_limit: 1024M
> > > >    max_matches: 30000
> > > >    max_filter_values: 300000
> > > >    bin_path: /usr/local/bin
> > > >
> > > >
> > > > I saw in github a similar problem which got fixed for TS 2.x
> > > > version(https://github.com/freelancing-god/thinking-sphinx/issues/
> > > > 268). I would assume this was fixed for 1.4.11 version as well. What
> > > > might have caused this issue?
> > > >
> > > > --
> > > > 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.
> > >
> > >
> > >
> > > --
> > > 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.
> >
> >
> >
> > --
> > 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.
>
>

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