You must have some other relevancy rules, right? Otherwise, for every 10
results you wish to display, just take the top 7 pizza results, then the
first 2 bread results, and then the top healthy result. But... I suspect
that this would not be acceptable because... you have additional rules that
you are not disclosing. So, disclose them.
-- Jack Krupansky
-----Original Message-----
From: André Maldonado
Sent: Friday, August 02, 2013 12:42 PM
To: solr-user@lucene.apache.org
Subject: Query to return different types of documents based on a field
Hi all.
In my recipes website I want to create a page where users can browse and
the return must be based on this rule:
- 70% of the results must be pizzas (type:pizza)
- 20% of the results must be breads (type:bread)
- 10% of the results must be healthy (type:healthy)
But I don't know how to query and paginate for this. I barely can achieve
this with 3 different queries, but this is not what I want.
There's way to do this?
Thanks in advance.
*
----------------------------------------------------------------------------------------------
*
*"E conhecereis a verdade, e a verdade vos libertará." (João 8:32)*
*andre.maldonado*@gmail.com <andre.maldon...@gmail.com>
(11) 9112-4227
<http://www.orkut.com.br/Main#Profile?uid=2397703412199036664>
<http://www.facebook.com/profile.php?id=100000659376883>
<http://twitter.com/andremaldonado>
<https://profiles.google.com/105605760943701739931>
<http://www.linkedin.com/pub/andr%C3%A9-maldonado/23/234/4b3>
<http://www.youtube.com/andremaldonado>