Code Monkey home page Code Monkey logo

elasticsearch-example's Introduction

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 es booter demo 的maven工程 本实例是一个bboss es booter的demo maven工程,可供各种类型项目集成参考

工程集成说明

快速集成和应用

非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

demo功能说明:

2.1 定义实体对象Demo

2.2 编写测试功能对象-DocumentCRUD.java

创建dsl配置文件-esmapper/demo.xml

删除和创建mapping

单文档添加/修改/删除

文档批量添加(elasticsearch不是实时flush记录,所以批量添加后如果立即查询可能查询不到刚添加的记录)

文档批量修改(elasticsearch不是实时flush记录,所以批量修改后如果立即查询可能查询不到刚修改的效果)

文档检索

关键词高亮检索

运行demo

src/test/java目录下面提供提供很多可以直接运行的的junit测试用例

比如运行增删改查:

elasticsearch 5.x,6.x

org.bboss.elasticsearchtest.crud.DocumentCRUDTest

elasticsearch 7.x

org.bboss.elasticsearchtest.crud.DocumentCRUD7Test

开发交流群

166471282

elasticsearch-example's People

Contributors

yin-bp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.