The Elasticsearch Query Generator is a Spring Boot application to simplify the creation of Elasticsearch queries. It is based on picturesafe-search and the picturesafe-search Spring Boot starter modules. To visualize the creation of Elasticsearch queries, it uses the vaadin UI framework.
In the project root directory run the following command:
mvn spring-boot:run
OR
If you built the application via mvn package
, change to the target
directory and start the application using the following command:
java -jar elasticsearch-querygenerator-<VERSION>.jar
-
Open http://localhost:8080 in your Browser.
-
Enter the Elasticsearch cluster to connect to in the format
host:port
(localhost:9200) is pre-selected. -
Click the
connect
button. -
Choose the index/alias you want to query.
-
Choose fields expressions and values for your query. Use the arrow up
^
button for add or remove actions. -
Click the
Query
button to create the Elasticsearch query JSON.