We have documents indexed with the date d1 for some documents and d2 for others, and we want to sort them by both of them, depending on which one is available.
sort=d1 desc, d2 desc
sorts a document with d1 separately for a document using d2 , for example:
d1: 2014-03-12 d1: 2010-03-12 d2: 2013-03-12 d2: 2011-03-12
We want everything to be sorted as follows:
d1: 2014-03-12 d2: 2013-03-12 d2: 2011-03-12 d1: 2010-03-12
Re-examination of all documents with a new common field, unfortunately, is not an option.
source share