How to get data from following format #<ActsAsSolr::SearchResults:0xb379438 @solr_data={:docs=>[{"id

hi,

i would like to know how to extract value from following format
which is from act as solr
multi search

StoreProductUpc.multi_solr_search @query,:models =>
[SalProduct],:results_format => :ids

below is the result came from multisearch how can i get actual id :
16399,16400 and 30504 instead for {“id”=>“6.152049”},
{“id”=>“1.2989831”}, {“id”=>“1.2989831”}

#<ActsAsSolr::SearchResults:0xb379438
@solr_data={:docs=>[{“id”=>“6.152049”}, {“id”=>“1.2989831”},
{“id”=>“1.2989831”}], :total=>3}>

could any one provide me the solution

thanks,
-pab

On Mon, Dec 12, 2011 at 9:04 PM, Pab [email protected] wrote:

below is the result came from multisearch how can i get actual id :
16399,16400 and 30504 instead for {“id”=>“6.152049”},
{“id”=>“1.2989831”}, {“id”=>“1.2989831”}

#<ActsAsSolr::SearchResults:0xb379438
@solr_data={:docs=>[{“id”=>“6.152049”}, {“id”=>“1.2989831”},
{“id”=>“1.2989831”}], :total=>3}>

look at this

http://stackoverflow.com/questions/2007495/actsassolrsearchresults

could any one provide me the solution

[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs