Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
Koishi Plugin Elasticsearch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
Koishi Plugin Elasticsearch
Commits
c4e99cfb
Commit
c4e99cfb
authored
Feb 15, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config
parent
e78f0403
Pipeline
#9681
failed with stages
in 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
README.md
README.md
+6
-4
src/config.ts
src/config.ts
+1
-3
No files found.
README.md
View file @
c4e99cfb
...
...
@@ -10,10 +10,12 @@ Koishi 的 Elasticsearch 支持插件。
npm
install
koishi-plugin-elasticsearch
```
##
# 直接安装
##
配置
在 https://cdn02.moecube.com:444/nanahira/koishi-plugin/elasticsearch/index.js 下载即可
。
详见
[
ElasticSearch 文档
](
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/basic-config.html
)
。
##
配置
##
Service API
详见
`config.ts`
部分,或详见 Schema 描述配置。
```
ts
ctx
.
elasticsearch
;
// ElasticSearchClient
```
src/config.ts
View file @
c4e99cfb
...
...
@@ -5,7 +5,7 @@ import { Schema } from 'koishi';
@
RegisterSchema
()
export
class
ElasticSearchPluginConfig
implements
ClientOptions
{
constructor
(
config
:
ElasticSearchPluginConfigLike
)
{}
constructor
(
config
:
ClientOptions
)
{}
@
DefineSchema
({
type
:
Schema
.
union
([
...
...
@@ -18,5 +18,3 @@ export class ElasticSearchPluginConfig implements ClientOptions {
})
node
:
string
|
string
[]
|
NodeOptions
|
NodeOptions
[];
}
export
type
ElasticSearchPluginConfigLike
=
ClientOptions
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment