freelancing-god/thinking-sphinx — Issue #295: Adding :with option to a facet query throws an exeption
Author: lestercsp
Created: 2011-10-20 03:04:51+00:00
State: open

I get this bug on my engineyard production server.

The error occurs on any facet search like this:

User.facets :with => {:my_indexed_attribute => true}

The thinking sphinx version is 2.0.7 and sphinx is at 0.9.9. Could this be an issue with the ruby version being used? On a local environment running 1.9.2 this runs fine.

NoMethodError: undefined method `to_crc32' for true:TrueClass
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet.rb:107:in `block in translate'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet.rb:105:in `each'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet.rb:105:in `detect'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet.rb:105:in `translate'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet.rb:82:in `value'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet_search.rb:127:in `block in add_from_results'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/search.rb:337:in `block in each_with_match'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/search.rb:336:in `each'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/search.rb:336:in `each_with_index'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/search.rb:336:in `each_with_match'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet_search.rb:126:in `add_from_results'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet_search.rb:52:in `block in populate'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet_search.rb:49:in `each'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet_search.rb:49:in `each_with_index'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet_search.rb:49:in `populate'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/facet_search.rb:13:in `initialize'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/search_methods.rb:422:in `new'
from /data/willh/shared/bundled_gems/ruby/1.9.1/bundler/gems/thinking-sphinx-f4465d3ac0e6/lib/thinking_sphinx/search_methods.rb:422:in `facets'
from (irb):7
from /data/willh/shared/bundled_gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb:44:in `start'
from /data/willh/shared/bundled_gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb:8:in `start'
from /data/willh/shared/bundled_gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/commands.rb:23:in `'
from ./script/rails:6:in `require'