Skip to content

Commit d4d9d1d

Browse files
committed
CLOUDTECH-26 fix facade
1 parent e028bc5 commit d4d9d1d

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/ElasticQuery.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@
44

55
use Elastic\Elasticsearch\Client;
66
use Ensi\LaravelElasticQuery\Debug\QueryLogRecord;
7+
use Http\Promise\Promise;
78
use Illuminate\Support\Collection;
89
use Illuminate\Support\Facades\Facade;
910

1011
/**
1112
* @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)
2425
* @method static void enableQueryLog()
2526
* @method static void disableQueryLog()
2627
* @method static Collection|QueryLogRecord[] getQueryLog()

0 commit comments

Comments
 (0)