how to get data from following format #<ActsAsSolr::SearchResults:0xb379438 @solr_data={:docs=>[{"id"=>"6.152049"}, {"id"=>"1.2989831"}, {"id"=>"1.2989831"}], :total=>3}>

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

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}>

look at this

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