Needs: I wan'to apply the solr query by keyword to a subgroups of
documents.

I'm putting on the index only title and content of each, is it
possibile to do something like this:

@articles = Article.find_by_solr(params[:query], {:scores => true, :id
=> [1,2,3]})

this above does not work, I get: "Invalid parameters: id"

it's ok if u know any other way to obtain that. ;)


This is an example of xml result to a query:

<doc>
 <float name="score">0.18781202</float>
 -
 <arr name="id">
 <str>Article:77</str>
 </arr>
 -
 <arr name="pk_i">
 <int>77</int>
 </arr>
 </doc>

last possibility.. i'd need to force find_by_solr to filter using
"Article.id IN (?)", [1,2,3]
(or a variable of array..of course)
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to