Skip to content

mashhur/elasticsearch-javaspring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

PUT my_index
{
    "settings" : {
        "index" : {
            "number_of_shards" : 1,
            "number_of_replicas" : 0
        }
    },
    "mappings": {
    "tpin": {},
    "spin": {
      "_parent": {
        "type": "tpin"
      }
    }
  }
}

About

elasticsearch java client sample (version 5.5.3)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages