Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
1 | <?php |
||
3 | interface ElasticaSearchHelperInterface { |
||
4 | /** |
||
5 | * Alter the query or add to it, perhaps for example adding aggregation |
||
6 | * @param Elastic\Query &$query query object from Elastica |
||
7 | * @return [type] [description] |
||
|
|||
8 | */ |
||
9 | public function augmentQuery(&$query); |
||
10 | |||
11 | /** |
||
12 | * Update filters, perhaps remaps them, prior to performing a search. |
||
13 | * This allows for aggregation values to be updated prior to rendering. |
||
14 | * @param array &$filters array of key/value pairs for query filtering |
||
15 | */ |
||
16 | public function updateFilters(&$filters); |
||
17 | |||
18 | /** |
||
19 | * Manipulate the array of aggregations post search butprior to rendering |
||
20 | * them in a template. |
||
21 | * @param [type] &$aggs [description] |
||
22 | * @return [type] [description] |
||
23 | */ |
||
24 | public function updateAggregation(&$aggs); |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Get a mapping from indexed field name to human readable title |
||
29 | * @return array array of index field name to human readable title |
||
30 | */ |
||
31 | public function getIndexFieldTitleMapping(); |
||
32 | |||
33 | |||
34 | /** |
||
35 | * In the event of using aggregates and no query provided, sort by this |
||
36 | * @return array Mapping of field name to sort order (asc,desc) |
||
37 | */ |
||
38 | public function getDefaultSort(); |
||
39 | } |
||
40 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.