Due to a large amount of filter terms (permissions system in the 1000s) I have to use Elastic_Query_Filtered
which is fine and I can even set limits for pagination using
$elasticaType->search($elasticaQueryString, $options);
It all works quite well until I introduce the sort option. Here's what I have so far:
$options = array('from'=>$from, 'size'=>$to, 'sort'=>array("description" => array("order" => "asc")));
$elasticaResultSet = $elasticaType->search($elasticaQueryString, $options);
Am I doing something stupid or is sorting just not supported yet. Is there an alternative. Using a bool filter was making things hit the max_clause_count
.