Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace CirrusSearch\Query; |
4 | |
5 | use CirrusSearch\Parser\AST\KeywordFeatureNode; |
6 | use CirrusSearch\Query\Builder\QueryBuildingContext; |
7 | use CirrusSearch\Search\Fetch\HighlightedField; |
8 | |
9 | /** |
10 | * Keywords willing to interact with the highlighting configuration |
11 | * should implement this interface. |
12 | */ |
13 | interface HighlightingFeature { |
14 | /** |
15 | * Build the list of highlighted fields to add to fetch phase configuration |
16 | * @param KeywordFeatureNode $node |
17 | * @param QueryBuildingContext $context |
18 | * @return HighlightedField[] |
19 | */ |
20 | public function buildHighlightFields( KeywordFeatureNode $node, QueryBuildingContext $context ); |
21 | } |