|
4 | 4 |
|
5 | 5 | use Elastic\Elasticsearch\Client;
|
6 | 6 | use Ensi\LaravelElasticQuery\Debug\QueryLogRecord;
|
| 7 | +use Http\Promise\Promise; |
7 | 8 | use Illuminate\Support\Collection;
|
8 | 9 | use Illuminate\Support\Facades\Facade;
|
9 | 10 |
|
10 | 11 | /**
|
11 | 12 | * @method static Client getClient()
|
12 |
| - * @method static array search(string $indexName, array $dsl) |
13 |
| - * @method static array searchAsync(string $indexName, array $dsl) |
14 |
| - * @method static array deleteByQuery(string $indexName, array $dsl) |
15 |
| - * @method static array get(string $indexName, int|string $id) |
16 |
| - * @method static array indicesExists(string $index) |
17 |
| - * @method static void indicesCreate(string $index, array $settings) |
18 |
| - * @method static array bulk(string $index, array $body) |
19 |
| - * @method static array documentDelete(string $index, int|string $id) |
20 |
| - * @method static array catIndices(string $indexName, array|null $getFields) |
21 |
| - * @method static array indicesDelete(string $indexName) |
22 |
| - * @method static array indicesRefresh(string $indexName) |
23 |
| - * @method static array indicesReloadSearchAnalyzers(string $indexName) |
| 13 | + * @method static array|Promise search(string $indexName, array $dsl, string|null $searchType = null) |
| 14 | + * @method static array|Promise deleteByQuery(string $indexName, array $dsl) |
| 15 | + * @method static array|Promise get(string $indexName, int|string $id) |
| 16 | + * @method static array|Promise indicesExists(string $index) |
| 17 | + * @method static null|Promise indicesCreate(string $index, array $settings) |
| 18 | + * @method static array|Promise bulk(string $index, array $body) |
| 19 | + * @method static array|Promise documentDelete(string $index, int|string $id) |
| 20 | + * @method static array|Promise catIndices(string $indexName, array|null $getFields = null) |
| 21 | + * @method static array|Promise indicesInfo(array|null $indices = [], array $columns = ['i'], array $sort = [], string|null $health = null) |
| 22 | + * @method static array|Promise indicesDelete(string $indexName) |
| 23 | + * @method static array|Promise indicesRefresh(string $indexName) |
| 24 | + * @method static array|Promise indicesReloadSearchAnalyzers(string $indexName) |
24 | 25 | * @method static void enableQueryLog()
|
25 | 26 | * @method static void disableQueryLog()
|
26 | 27 | * @method static Collection|QueryLogRecord[] getQueryLog()
|
|
0 commit comments