Hey everyone,

I'm newbie to solr.

I have a question below:
Assume that I have the fields 'item_name' and 'category_name', like
item_name | category_name
apple             fruit
orange          fruit
rice                grain
corn              grain
strawberry    fruit
beef              meat
....

I want to fetch the result set of "top 2 item of each categories I specified 
(might be 2 of them 'fruit', 'grain')" at one time, instead of fetch them 
through several requests, is it possible with solr?

It seems that in mysql database, there's union functionality which can combine 
several request queries together, so how about solr?

Thanks.

Best regards,
--------------------------------
Minzhi Tang
Skype: minzhitang
MSN: tmin...@hotmail.com

Reply via email to