#123 ✓invalid
Robert Zotter

Multiple facets throw an exception

Reported by Robert Zotter | June 7th, 2010 @ 05:22 PM | in Bugs

Sunspot.search(MyModel) do
  keywords "whatever"
  facet(:foo)
  facet(:bar)
end
NoMethodError: undefined method `keys' for ["categories_ims"]:Array
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/util.rb:179:in `deep_merge_into'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/util.rb:176:in `deep_merge_into'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/util.rb:167:in `each_pair'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/util.rb:167:in `deep_merge_into'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/util.rb:141:in `deep_merge!'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/query/common_query.rb:50:in `to_params'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/query/common_query.rb:49:in `each'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/query/common_query.rb:49:in `to_params'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/search/abstract_search.rb:34:in `execute'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/session.rb:59:in `search'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `search'
    from /Users/Zotter/workspace/ioffer/vendor/plugins/sunspot-1.1.0/lib/sunspot.rb:323:in `search'

Comments and changes to this ticket

  • mat

    mat July 14th, 2010 @ 11:24 AM

    • Milestone set to Bugs
    • Milestone order changed from “0” to “0”
  • mat

    mat July 14th, 2010 @ 11:29 AM

    • State changed from “new” to “invalid”

    This may be a real bug, but simply specifying multiple facets in a search isn't sufficient to reproduce it. Can you submit a patch with a test case, or at least specific reproduction steps?

    Marking invalid pending that info.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Awesome Solr interaction for Ruby

People watching this ticket

Tags

Pages