I am using elastica and below is my query :
$query = new Query();
$query->setSize(5);
$qb = new \Elastica\Query\Ids();
$qb->addId("id_5");
$qb->addId("id_3");
$qb->addId("id_4");
$qb->addId("id_1");
$qb->addId("id_2");
return $query->setQuery($qb)
I want the result return in the same order as what I passed in for example in this case it will be "id_5, id_3, id_4, id_1, id_2"
however what i get is the sorting is not the same as what I wanted