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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedDec 12, '11 at 1:04p
activeDec 12, '11 at 1:16p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Jim Ruther Nill: 1 post Pab: 1 post

People

Translate

site design / logo © 2021 Grokbase