You might want to look at nested documents. All documents of Name A would go into one document and therefore you only get one hit per Name. After that you can sort the inner hits by Date and Rank.
We get here 3 innerhits for 3 different documents.
A,B,C
We cannot sort those 3 different innerhits based on Date and Rank.
Since they come under different documents.
Under each document we get one innerhit.
Doc A
{
innerhit A
}
Doc B
{
innerhit B
}
Doc C
{
innerhit C
}
which is not possible to sort on any parameter.
I tried from my end.
let me know if it is possible.
Thanks in Advance
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.