We have an index in ElasticSearch whose root document includes a property
called Type. Type can have one of the following values:
"Track", "Video","Ringtone".
We want to query the index, and return all documents whose Title property
includes "Micheal". However, we want exactly 10 documents of each Type in
the result set. For example 10 Tracks, 10 Videos and 10 Ringtones whose
Title property includes "Michael".
On Monday, July 8, 2013 5:39:25 PM UTC-6, Aref Karimi wrote:
Hi guys,
We have an index in Elasticsearch whose root document includes a property
called Type. Type can have one of the following values:
"Track", "Video","Ringtone".
We want to query the index, and return all documents whose Title property
includes "Micheal". However, we want exactly 10 documents of each Type in
the result set. For example 10 Tracks, 10 Videos and 10 Ringtones whose
Title property includes "Michael".
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.