Customize solr 4.10.3 search results
I have found type of document in solr database. Out of those 4, one is general document, second news, third books and fourth poetry. Now I want to query solr so that it should return 10 results. out of those 7 result should be from general documents, 1 from news, 1 from books and 1 from poetry. I am using solr in cloud mode.
Is it possible. if yes then how if not then why ? Basically, I want to get all these in one query.
You can use result grouping. Based on this documentation your request should be
After search you should take seven items from group with general type, and by one item from others groups.