Skip to content

Commit e899882

Browse files
authored
docs(telescope-elasticsearch): update component documentation (#797)
- Update English and Chinese documentation for telescope-elasticsearch component - Update component README.md - Modify telescope install command Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
1 parent df64ab0 commit e899882

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

en/components/telescope-elasticsearch.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@ It will allow you to switch from an SQL database to Elasticsearch as a driver fo
88
composer require friendsofhyperf/telescope-elasticsearch
99
```
1010

11+
## Publish Config
12+
13+
```shell
14+
php bin/hyperf.php vendor:publish friendsofhyperf/telescope --id=config
15+
```
16+
1117
## Configuration
1218

1319
```php
1420
// config/autoload/telescope.php
1521
return [
22+
'driver' => 'elasticsearch',
1623
'storage' => [
1724
'elasticsearch' => [
1825
'driver' => FriendsOfHyperf\TelescopeElasticsearch\Storage\ElasticsearchEntriesRepository::class,

zh_CN/components/telescope-elasticsearch.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@
88
composer require friendsofhyperf/telescope-elasticsearch
99
```
1010

11+
## 发布配置
12+
13+
```shell
14+
php bin/hyperf.php vendor:publish friendsofhyperf/telescope --id=config
15+
```
16+
1117
## 配置
1218

1319
```php
1420
// config/autoload/telescope.php
1521
return [
22+
'driver' => 'elasticsearch',
1623
'storage' => [
1724
'elasticsearch' => [
1825
'driver' => FriendsOfHyperf\TelescopeElasticsearch\Storage\ElasticsearchEntriesRepository::class,

0 commit comments

Comments
 (0)