ElasticaSearchHelperInterface
last analyzed

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 0%
Metric Value
dl 0
loc 37
ccs 0
cts 0
cp 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
augmentQuery() 0 1 ?
updateFilters() 0 1 ?
updateAggregation() 0 1 ?
getIndexFieldTitleMapping() 0 1 ?
getDefaultSort() 0 1 ?
1
<?php
2
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]
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

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.

Loading history...
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]
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

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.

Loading history...
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