Pat btw riddle 1.0.4 is not working on Passenger 2.2.7 and REE .10
undefined method `to_io' for #<StringIO:0x1bae108>

My guess it's related to ruby 1.8.7 compatibility

Cyrille

On 1 déc, 15:33, keldelice <[email protected]> wrote:
> Hi Pat, that was fast !
>
> 1.3.8 definitely solve the delayed_job pb. However I've another bug
> which doesn't exist in 1.3.4
>
> I've 1 model called Site and 2 Sti models that inherited from Site
> called Event and Place.
> My sphinx declaration is in Site :
>
>   define_index do
>     indexes :title, :sortable => true
>     indexes :description, :sortable => true
>
>     has address.locality(:id), :as => :locality_id, :facet => true
>     has address.locality.sub_administrative_area(:id), :as
> => :sub_administrative_area_id, :facet => true
>     has address.locality.sub_administrative_area.administrative_area
> (:id), :as => :administrative_area_id, :facet => true
>
>     set_property :field_weights => { "title" => 100 }
>     where "sites.state = 'active'"
>
>     set_property :delta => :delayed
>     has created_at
>   end
>
> As you may have guessed address is a polymorphic table where I store
> all addresses.
>
> So with 1.3.4
> Event.facets
> Place.facets
> Site.facets
> return fine results
>
> With 1.3.8>> Event.facets
> => {}
> >> Place.facets
> => {}
> >> Site.facets
>
> NoMethodError: You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.value
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/facet_search.rb:114:in `add_from_results'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/search.rb:199:in `each_with_groupby_and_count'
>         from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/
> base.rb:2197:in `each_with_index'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/search.rb:198:in `each'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/search.rb:198:in `each_with_index'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/search.rb:198:in `each_with_groupby_and_count'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/facet_search.rb:113:in `add_from_results'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/facet_search.rb:49:in `populate'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/facet_search.rb:47:in `each'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/facet_search.rb:47:in `populate'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/facet_search.rb:13:in `initialize'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/search_methods.rb:422:in `new'
>         from /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/
> thinking_sphinx/search_methods.rb:422:in `facets'
>         from (
>
> Cheers,
> Cyrille
>
> On 1 déc, 11:30, Pat Allan <[email protected]> wrote:
>
>
>
> > Hi Cyrille
>
> > 1.3.8 was *just* released - it'd be great if you could give it a spin,  
> > let me know if it works nicely for you.
>
> > As for delayed_delta, there's no difference, it's really just there  
> > for those not familiar with delayed job, providing a Thinking Sphinx  
> > namespaced approach for processing jobs.
>
> > --
> > Pat
>
> > On 01/12/2009, at 9:19 PM, keldelice wrote:
>
> > > Thanks Pat,
>
> > > I'll wait until you release 1.3.8.
>
> > > However just wondering what is thinking_sphinx:delayed_delta for ?
> > > Should it always run like script/delayed_job ? And both should run
> > > together ?
>
> > > Thanks
> > > Cyrille
>
> > > BTW : TS rocks !
>
> > > On 1 déc, 02:05, Pat Allan <[email protected]> wrote:
> > >> Hi Cyrille
>
> > >> I'm working on updates for 1.3.8 today, and there are known bugs in
> > >> 1.3.7 and 1.3.6 - if you can wait for 24 hours, hopefully I'll have
> > >> the much-more-stable release of 1.3.8 out, and that will hopefully  
> > >> fix
> > >> these problems. If not, at least we'll know it's a new set of bugs,
> > >> and I'll happily help you work through them.
>
> > >> Cheers
>
> > >> --
> > >> Pat
>
> > >> On 01/12/2009, at 2:13 AM, keldelice wrote:
>
> > >>> Hi guys,
>
> > >>> I'm in the process of updating sphinx and thinking-sphinx to their
> > >>> latest release.
> > >>> Before I was using :
> > >>> - sphinx 0.9.8.1
> > >>> - freelancing-god-thinking-sphinx (1.2.11) as a gem
> > >>> - delayed_job (1.8.4) as a plugin
>
> > >>> We where using a lot delayed job in the app and we experienced some
> > >>> conflict problems with previously bundled one in TS gem.
>
> > >>> So we've decided to upgrade with :
> > >>> - thinking-sphinx (1.3.7) as a gem
> > >>> - delayed_job (1.8.4) as a gem
> > >>> - ts-delayed-delta (1.0.1) as a gem
>
> > >>> My app on rails 2.3.4 (before and after)
>
> > >>> So as the upgrade process I've
> > >>> - installed sphinx 0.9.9rc2 form source (on ubuntu)
> > >>> - installed gems from gemcutter
> > >>> - modified environement.rb with
>
> > >>> @@@
> > >>>  config.gem "thinking-sphinx", :lib => 'thinking_sphinx/
> > >>> 0.9.9', :source  => 'http://gemcutter.org'
> > >>>  config.gem "delayed_job"
> > >>>  config.gem 'ts-delayed-delta', :lib => 'thinking_sphinx/deltas/
> > >>> delayed_delta', :version => '>= 1.0.0', :source  => 'http://
> > >>> gemcutter.org'
> > >>> @@@
>
> > >>> - changed all :delta => true by :delta => :delayed
> > >>> - modify Rakefile and add
>
> > >>> @@@
> > >>> require 'thinking_sphinx/0.9.9'
> > >>> require 'thinking_sphinx/tasks'
> > >>> require 'delayed/tasks'
> > >>> require 'thinking_sphinx/deltas/delayed_delta/tasks'
> > >>> @@@
>
> > >>> Delayed_job, sphinx and TS are installed on the same machine  
> > >>> (which is
> > >>> however neither the app nor the db. It's a dedicated queuing  
> > >>> machine)
>
> > >>> After ts:rebuild and some corrections of not well defined indexes  
> > >>> the
> > >>> app is running fine for the search part. However I didn't understand
> > >>> quite well the delta stuff with delayed_job. We have a DJ deamon
> > >>> working permanently launched through script/delayed_job
>
> > >>> When I update content the queue is updated
> > >>> --- !ruby/object:ThinkingSphinx::Deltas::FlagAsDeletedJob  
> > >>> document_id:
> > >>> 103 indexes: - user_core
>
> > >>> but nothing is done. Just the number of attempts increasing
>
> > >>> I've tried to launch rake thinking_sphinx:delayed_delta however it
> > >>> crashed
> > >>> *** Starting job worker host:XXXXX pid:11548
> > >>> rake aborted!
> > >>> Job failed to load: uninitialized constant
> > >>> ThinkingSphinx::Deltas::DeltaJob. Try to manually require the  
> > >>> required
> > >>> file.
>
> > >>> Is there someone to help me ?
>
> > >>> Thanks
> > >>> Cyrille
>
> > >>> --
>
> > >>> 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 
> > >>> athttp://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 
> > > athttp://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.


Reply via email to