semvec/pypi-packages huggingface dataset:
xiaoapi-elasticsearch 0.0.3
xiaoapi elasticsearch
License: MIT
Requires Python: >=3.8
Keywords: xiaoapi, fastapi, web-framework, elasticsearch

# xiaoapi-elasticsearch
[xiaoapi](https://github.com/xiaojinlii/xiaoapi)的elasticsearch扩展包


## 安装
```
pip install xiaoapi-elasticsearch
```


## 配置
需要在 application/settings 中 添加以下配置：
```python
# Elasticsearch 配置
ELASTICSEARCH_ENABLE = False
ELASTICSEARCH_USER = "elastic"
ELASTICSEARCH_PASSWORD = "gv3Z0Nnti2gdApgzLmUN"
ELASTICSEARCH_URL = "http://127.0.0.1:9200"
```

然后在 application/settings 中的 EVENTS 里引入 xiaoapi_elasticsearch
```python
EVENTS = [
    "xiaoapi_elasticsearch.connect_elasticsearch",
]
```