#110 ✓resolved
Robert Zotter

Retrieving stored boolean fields

Reported by Robert Zotter | April 18th, 2010 @ 04:27 PM | in Bugs

There appears to be a bug with retrieving stored boolean fields in version 1.1.0.

class Item
  boolean :shipping_included,  :stored => true
>> search = Sunspot.search(Item) { with(:shipping_included, true) }
=> <Sunspot::Search: {:rows=>30, :q=>"*:*", :start=>0, :fq=>["type:Item","shipping_included_bs:true"]}>
>> search.hits.first.stored(:shipping_included)
>> nil
>> search.hits.first.instance_variable_get(:@stored_values)
>> { "shipping_included_bs"=>true }

Comments and changes to this ticket

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


Referenced by