Sometimes I need to sort on a field that doesn't exist. I of course
do not know it doesn't exist until runtime.
I tried the following
FieldSortBuilder sb = new
SortOrder.DESC : SortOrder.ASC);
I have sett the midding() to other values but it doesn't work because
my field is a String and ElasticSearch complains.
srb is the SearchRequestBuilder
We are replacing Lucene with ElasticSearch. In Lucene this worked for
us as we would construct the SortField Object and add that to the
How can I make this work?