https://github.com/jorgermduarte/poc-java-opensearch
https://github.com/jorgermduarte/poc-java-opensearch
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jorgermduarte/poc-java-opensearch
- Owner: jorgermduarte
- License: mit
- Created: 2025-03-26T15:58:31.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-26T16:49:51.000Z (7 months ago)
- Last Synced: 2025-06-19T17:15:01.653Z (4 months ago)
- Language: Java
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenSearch Spring Boot Proof of Concept
[](https://opensearch.org/)
[](https://spring.io/projects/spring-boot)A Proof of Concept demonstrating OpenSearch integration with Spring Boot for product catalog management and search capabilities.
## Features
- 📦 Product indexing with OpenSearch
- 🔍 Full-text search across product names and descriptions
- ✅ CRUD operations for product management
- 🐳 Dockerized OpenSearch setup
- 🚀 REST API endpoints for easy integration## Prerequisites
- Docker 20.10+
- Java 21+
- Maven 3.8+
- IDE (IntelliJ, VS Code, or Eclipse)## Technologies
- **Spring Boot 3.2.0**
- **OpenSearch 2.14.0**
- OpenSearch Java Client
- Spring Web MVC## API Documentation
### Endpoints
| Method | Endpoint | Description |
|--------|-------------------------|---------------------------|
| POST | /api/products | Create/Index a new product |
| GET | /api/products/{id} | Get product by ID |
| GET | /api/products/search | Search products by query |### Testing
I've added a requests.http where you can set the dev environment to test the POC with the following use cases:1. [Index a Product](#1-index-a-product-post)
2. [Get Product by ID](#2-get-product-by-id-get)
3. [Search Products](#3-search-products-get)
4. [Edge Case Examples](#4-edge-case-examples)IntelliJ HTTP Request Client requests demonstration:
