command
module
Version:
v0.0.0-...-781843a
Opens a new window with list of versions in this module.
Published: Jul 18, 2021
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Mo2 Search Service
Mo2的微服务之一,提供搜索相关服务
[ATTENTION] 此服务没有任何安全性,任何情况下不应该将该服务的接口直接暴露给外界
API
- 创建索引
- POST:
/api/index
- QUERY:
name索引名
- 列出索引
- 更新/插入索引的文档
- PUT:
/api/{index}
- QUERY:
id文档的id
- BODY: 文档,json格式
- 删除索引的文档
- DELETE:
/api/{index}
- QUERY:
id文档的id
- 搜索文档
- POST:
/api/search
- QUERY:
index搜索的索引
- BODY:
bleve.SearchRequest
- Response:
bleve.SearchResult
Dokcer
用一下命令拉取我们的docker image
sudo docker pull registry.cn-hangzhou.aliyuncs.com/mo2/mo2search:latest
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.