Hi, all.

I am using solr running multiple indexes, by Flattening Data Into a
Single Index [1].

A type field in schema to stand for type of document, say it has
following options: book, movie, music

When query it, some types may have more result rows than others, for
example, we need 3 result rows, one for each type. but it may return
results only containing one type by default ranking.

My question is how to limit result rows by each type, so in above case
 result covers all types, one result for each type.

Is there such solr/lucene query syntax or other ways can do it?

currently, what i got is do a query for each type, so it may limit
result rows for each type. but it must do query many times and may be
very slow when i have many types.

Thanks for your suggestions.

--
[1]
http://wiki.apache.org/solr/MultipleIndexes#Flattening_Data_Into_a_Single_Index


-peter

Reply via email to