项目作者: mashhur

项目描述 :
elasticsearch java client sample (version 5.5.3)
高级语言: Java
项目地址: git://github.com/mashhur/elasticsearch-javaspring.git
创建时间: 2018-04-19T07:09:59Z
项目社区:https://github.com/mashhur/elasticsearch-javaspring

开源协议:

下载


Elastic Search Java Client

Simple Java application to process basic functionalities (Create Index, Indexing documents, Simple Query) and Parent-Chiild relationship of ElasticSearch. Furthemore it uses TcpTransport client (After ES 7.0v ES considering to remove TcpTransport client, so I recommend to use Hight rest client instead.)

Steps


Parent-child relationship implementation

Queries and data samples

  1. PUT my_index
  2. {
  3. "settings" : {
  4. "index" : {
  5. "number_of_shards" : 1,
  6. "number_of_replicas" : 0
  7. }
  8. },
  9. "mappings": {
  10. "tpin": {},
  11. "spin": {
  12. "_parent": {
  13. "type": "tpin"
  14. }
  15. }
  16. }
  17. }