Project program structure

In the GitHub repository of this chapter (https://github.com/PacktPublishing/Mastering-Elasticsearch-7.0/tree/master/Chapter18/sprintboot-es-analytics), we can download a Spring Boot project named springboot-es-analytics.

We can use SpringToolSuite4 IDE to edit, compile, and run the data. The project program structure is shown in the following screenshot, which is extracted from the IDE:

Each major package is briefly described as follows:

  • The main method of the Spring Boot project is in EsAnalyticsApplication.java, under the com.example.esanalytics package.
  • There are two Plain Old Java Objects (POJOs), the

Get Advanced Elasticsearch 7.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.