Skip to content

Latest commit

 

History

History

boot-opensearch-sample

OpenSearch Integration

Showcases saving data and performing swift geospatial or text-based searches in OpenSearch as an alternative to Elasticsearch.


Key Features

  • OpenSearch Client: Illustrates setting up a Spring Boot app to send documents to an OpenSearch cluster.
  • Geospatial Queries: Provides examples of storing and querying location-based data.
  • High Throughput: Demonstrates efficient indexing and search operations.

Querying

You can use either:

  • Swagger UI for built-in endpoints.
  • OpenSearch Dashboards for manual searching.

Format code

./mvnw spotless:apply

Run tests

./mvnw clean verify

Run locally

docker-compose -f docker/docker-compose.yml up -d
./mvnw spring-boot:run -Dspring-boot.run.profiles=local

Using Testcontainers at Development Time

You can run TestApplication.java from your IDE directly. You can also run the application using Maven as follows:

./mvnw spring-boot:test-run

Useful Links