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\Fallbacks; |
4 | |
5 | use Elastica\Client; |
6 | use Elastica\Search; |
7 | |
8 | /** |
9 | * A fallback method that is able to attach a complete search query to the main msearch |
10 | * request. |
11 | * Results of the query are available from the FallbackRunnerContext |
12 | */ |
13 | interface ElasticSearchRequestFallbackMethod { |
14 | |
15 | /** |
16 | * Build a search to attach to the msearch request |
17 | * The results of this query is available from |
18 | * @param Client $client |
19 | * @return Search|null null if no additional request is to be executed for this method. |
20 | * @see FallbackRunnerContext::getMethodResponse() |
21 | */ |
22 | public function getSearchRequest( Client $client ); |
23 | } |