O
O
ol sm2017-09-11 17:25:01
symfony
ol sm, 2017-09-11 17:25:01

How to implement order by desc on foselasticsearchbundle?

How to implement order by desc on foselasticsearchbundle?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fredrsf, 2017-11-30
@fredrsf

In the simplest case like this:

namespace App;

use Elastica\Query;

$query = new Query();
$query->setSort(['price' => 'desc']);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question