Skip to content

Commit cf8d461

Browse files
committed
#100913 add indicesSearchAnalyzers method
1 parent 5788006 commit cf8d461

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Concerns/InteractsWithIndex.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public function indicesRefresh()
8181
return $this->resolveClient()->indicesRefresh($this->indexName());
8282
}
8383

84+
public function indicesSearchAnalyzers()
85+
{
86+
return $this->resolveClient()->indicesSearchAnalyzers($this->indexName());
87+
}
88+
8489
public static function query(): SearchQuery
8590
{
8691
return new SearchQuery(new static());

src/ElasticClient.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ public function indicesRefresh(string $indexName)
9292
return $this->client->indices()->refresh(['index' => $indexName]);
9393
}
9494

95+
public function indicesSearchAnalyzers(string $indexName)
96+
{
97+
return $this->client->indices()->reloadSearchAnalyzers(['index' => $indexName]);
98+
}
99+
95100
public function enableQueryLog(): void
96101
{
97102
$this->queryLog ??= new QueryLog();

0 commit comments

Comments
 (0)