You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
.. | ||
Sanhe/Abp/Elasticsearch | 3 years ago | |
FodyWeavers.xml | 3 years ago | |
README.md | 3 years ago | |
Sanhe.Abp.Elasticsearch.csproj | 3 years ago |
README.md
Sanhe.Abp.Elasticsearch
Abp Elasticsearch集成,提供全局唯一IElasticClient访问接口
模块引用
[DependsOn(typeof(AbpElasticsearchModule))]
public class YouProjectModule : AbpModule
{
// other
}
配置项
- AbpElasticsearchOptions.FieldCamelCase 字段是否采用 camelCase 格式, 默认false
- AbpElasticsearchOptions.NodeUris ES端点,多个端点以,或;分隔
- AbpElasticsearchOptions.TypeName 文档名称,默认_doc
- AbpElasticsearchOptions.ConnectionLimit 最大连接数,详情见 NEST 文档
- AbpElasticsearchOptions.UserName 连接用户,详情见 NEST 文档
- AbpElasticsearchOptions.Password 用户密码,详情见 NEST 文档
- AbpElasticsearchOptions.ConnectionTimeout 连接超时时间,详情见 NEST 文档
appsettings.json
{
"Elasticsearch": {
"NodeUris": "http://localhost:9200"
}
}