Hi guys,
Ive got a query that is searching on multiple fields, that works as
required. I then wanted to sort the results on a date field so i went ahead
and added a new property mapping for the date field.
I then added a sort onto the query"
.addSort("publicationdate", SortOrder.DESC);
Now when my results come back, for say searching for a book title of
'tempted to submit' which used to come back with the correct book as the
first entry, its now pushed down as the 6th entry, its definatly the sort
causing this issue.
Any idea how i can have the original query work as it did but have the
results sorted by date?
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.