17 Unstar Star 28 Fork 13

bboss / elasticsearchdemo

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Bboss is a good elasticsearch Java rest client. It operates and accesses elasticsearch in a way similar to mybatis.

BBoss Environmental requirements

JDK requirement: JDK 1.7+

Elasticsearch version requirements: 1.X,2.X,5.X,6.X,+

Spring booter 1.x,2.x,+

bboss elastic demo,包含以下示例

拼音搜索示例

分页查询示例

地理位置检索示例

聚合统计查询示例

普通es 增删改、批量增删改、全文检索orm示例

父子关系检索示例

关键词高亮显示示例

关键词联想和补全示例(term suggest,phrase suggest,complete suggest)

使用参考文档

快速集成和应用

非spring boot项目: https://esdoc.bbossgroups.com/#/common-project-with-bboss

spring boot项目: https://esdoc.bbossgroups.com/#/spring-booter-with-bboss

详细配置说明参考文档: https://esdoc.bbossgroups.com/#/development

构建部署

源码下载

https://github.com/bbossgroups/elasticsearchdemo

通过gradle构建发布版本

前提:安装gradle

运行指令,打包发布版本 release.bat

运行

gradle构建成功后,在build/distributions目录下会生成可以运行的zip包,解压后,参考《bboss elasticsearch开发库使用介绍》修改elasticsearch的相关配置,然后找到demo的运行指令,就可以启动和运行demo:

打开配置文件conf/elasticsearch.properties,修改es地址,es账号和口令:

elasticsearch.rest.hostNames=127.0.0.1:9200

如果启动了elasticsearch认证,修改es账号和口令:

elasticUser=elastic

elasticPassword=changeme

运行demo

linux:

chmod +x startup.sh

./startup.sh

windows: startup.bat

elasticsearch技术交流群:166471282

elasticsearch微信公众号:bbossgroup

GitHub Logo

Comments ( 0 )

Sign in for post a comment

About

bboss elastic开发demo spread retract
Java and 3 more languages
Apache-2.0
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/bboss/elasticsearchdemo.git
git@gitee.com:bboss/elasticsearchdemo.git
bboss
elasticsearchdemo
elasticsearchdemo
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542