ElasticsearchDSL
ElasticsearchDSL copied to clipboard
There is a lack of documentation on how to use sort
+1
Any update on this issue ?
+1
+1
- 100
+1000
Yes, how do I use sort?
use ONGR\ElasticsearchDSL\Sort\FieldSort;
$search->addSort(new FieldSort('_score', 'ASC'));
$search->addSort(new FieldSort('title', 'ASC'));