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

  • Jim Ruther Nill at Dec 12, 2011 at 1:16 pm

    On Mon, Dec 12, 2011 at 9:04 PM, Pab wrote:

    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

    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.

    --
    -------------------------------------------------------------
    visit my blog at http://jimlabs.heroku.com

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

Related Discussions

Discussion Navigation
viewthread | post
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