Skip to content

Commit 591becb

Browse files
author
Kapitanov Andrey
committed
V8 Cat Indices
1 parent bb60558 commit 591becb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Concerns/InteractsWithIndex.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ public function catIndices(string $indexName, ?array $getFields = null): array
7171
return $this->resolveClient()->catIndices($indexName, $getFields);
7272
}
7373

74-
public function indicesInfo(
75-
?array $indices = [],
76-
array $columns = ['i'],
77-
array $sort = [],
78-
?string $health = null
79-
): array {
80-
return $this->resolveClient()->indicesInfo($indices, $columns, $sort, $health);
74+
public function indicesInfo(array $columns = ['i'], array $sort = [], ?string $health = null): array
75+
{
76+
return $this->resolveClient()->indicesInfo(
77+
indices: [$this->indexName()],
78+
columns: $columns,
79+
sort: $sort,
80+
health: $health
81+
);
8182
}
8283

8384
public function indicesDelete(string $index): array

0 commit comments

Comments
 (0)