Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.19 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.19 KB

Spring-Data-Elasticsearch-POC

해당 프로젝트는 Spring Data Elasticsearch 에 대한 Index/Query POC(Proof of concept) 입니다.

아래 서비스에 대한 POC 를 지원합니다.

  • Elasticsearch
  • Opensearch

This project is an Index/Query POC (Proof of Concept) for Spring Data Elasticsearch.

We support POC for the following services:

  • Elasticsearch
  • Opensearch

Diagram

image

Run

Clone project

$ https://github.com/currenjin/elasticsearch-poc

Elasticsearch

$ make start-elasticsearch * jar is required.

Opensearch

$ make start-opensearch * jar is required.

Invoke api

PORT Number

  • Elasticsearch client : 8081
  • Opensearch client : 8082

In(Index)

$ curl -d '{"id":"test","name":"currenjin","phoneNumber":"01012341234"}' \
-H "Content-Type: application/json" \
-X POST http://localhost:{PORT}/

Out(Query)

$ curl -X GET "http://localhost:{PORT}/test"
$ curl -X GET "http://localhost:{PORT}?name=currenjin"
$ curl -X GET "http://localhost:{PORT}?phoneNumber=01012341234"