Source of file ElasticaSearchHelperInterface.php
Size: 1,277 Bytes - Last Modified: 2021-12-23T10:58:34+00:00
/var/www/docs.ssmods.com/process/src/src/SilverStripe/Elastica/ElasticaSearchHelperInterface.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | <?php interface ElasticaSearchHelperInterface { /** * Alter the query or add to it, perhaps for example adding aggregation. * * @param Elastic\Query &$query query object from Elastica * * @return [type] [description] */ public function augmentQuery(&$query); /** * Update filters, perhaps remaps them, prior to performing a search. * This allows for aggregation values to be updated prior to rendering. * * @param array &$filters array of key/value pairs for query filtering */ public function updateFilters(&$filters); /** * Manipulate the array of aggregations post search butprior to rendering * them in a template. * * @param [type] &$aggs [description] * * @return [type] [description] */ public function updateAggregation(&$aggs); /** * Get a mapping from indexed field name to human readable title. * * @return array array of index field name to human readable title */ public function getIndexFieldTitleMapping(); /** * In the event of using aggregates and no query provided, sort by this. * * @return array Mapping of field name to sort order (asc,desc) */ public function getDefaultSort(); } |