![[공부] NoSQL, ElasticSearch 바닥부터 구현하기](https://image.inblog.dev?url=https%3A%2F%2Finblog.ai%2Fapi%2Fog%3Ftitle%3D%255B%25EA%25B3%25B5%25EB%25B6%2580%255D%2520NoSQL%252C%2520ElasticSearch%2520%25EB%25B0%2594%25EB%258B%25A5%25EB%25B6%2580%25ED%2584%25B0%2520%25EA%25B5%25AC%25ED%2598%2584%25ED%2595%2598%25EA%25B8%25B0%26logoUrl%3Dhttps%253A%252F%252Finblog.ai%252Finblog_logo.png%26blogTitle%3D%25EC%258A%25A4%25ED%2583%25AF%25EB%25B8%2594%25EB%25A1%259C%25EA%25B7%25B8%2520-%2520%25EB%258D%25B0%25EC%259D%25B4%25ED%2584%25B0%2520%25EC%2582%25AC%25EC%259D%25B4%25EC%2596%25B8%25EC%258A%25A4&w=2048&q=75)
ElasticSearch는 어떻게 구현하면 될까?
기본 Tool은 VS code를 이용했다.
- Docker를 통해 나만의 가상 환경을 구현해야 한다.
Docker 설치 및 구현하기




- 만들어줬으면 새로운 가상 컴퓨터를 만들 수 있다.

- 설치했으면 관리자 권한으로 명령 프롬프트 실행

- 명령어를 실행했는데 인식 못함


(다 완료되면 이렇게 뜬다.)
- 이제 도커를 설치해야 하는데 여기 참고 (링크) 정상적으로 작동하면 이렇게 된다.

- 이번엔 이런 문제가 뜨는데 리눅스를 설치 안해서 그렇다…

- 다시 명령 프롬프트를 관리자 권한으로 켜서 해당 링크가 하라는 대로 하면



이렇게 마무리를 지을 수 있다.
- 이제 도커에서 세팅만 해주면 되는데

- 해당 설정들을 다 체크해주고 Restart하면,

- Resources넘어가서 이렇게 설정해주면 끝이 난다.

- 이제 Visual Studio Code로 넘어가서 코드를 확인해보자. 이렇게 결과가 나온다면 정상적으로 실행한 것을 알 수 있다.

- 이제 특정 부분의 코드를 우클릭 후 ‘Compose Up’해준다면


이런 식으로 프로젝트가 진행되기 시작한다.
결과물
- 2번
- 데이터 삽입

- 2번 결과 확인
- 먼저 결과 확인

- SQL문 실행하기

- 3번 kimchy찾기


- 4번 eriky and post_data is less than 2022-01-01

SQL로 확인하기

Share article