Elastic search 3

Elastic Stack 아주 조금만 알아보자 - Aggregation

Aggregation The aggregations framework helps provide aggregated data based on a search query. It is based on simple building blocks called aggregations, that can be composed in order to build complex summaries of the data. 집계 프레임 워크는 검색 쿼리를 기반으로 집계 된 데이터를 제공합니다. 이는 복잡한 데이터 요약을 작성하기 위해 구성 할 수있는 집계라는 간단한 빌딩 블록을 기반으로합니다. Elastic Search의 Aggregation이라는 컨셉에 대한 내용이며, 정리하여 Elastic Search의 Document안에서 조..

Architecture/ELK 2019.12.04

Elastic Stack 아주 조금만 알아보자 - ElasticSearch Mapping/Search

Mapping 이란 Mapping은 RDB에서 Schema와 비슷한 역할을 한다. 그러나, 항상 Mapping이 필요한가를 묻는다면, 앞선 포스트에서 진행했듯, 딱히 신경쓰지 않아도 Document 생성/삭제/수정 등이 자유롭다. 그러나, Mapping이 정확하지 않으면 우리가 원하는 데이터의 정합성이 떨어지게 된다. (숫자가 String 으로 저장되는 등) 따라서, Kibana를 이용한다는 등 분석 및 Visualize를 해야할 때 제대로 사용하기 위해서는 꼭 넣어주는 것이 좋다. { "class" : { "properties" : { "title" : { "type" : "text" }, "professor" : { "type" : "text" }, "major" : { "type" : "text" ..

Architecture/ELK 2019.11.27

Elastic Stack 아주 조금만 알아보자 - ElasticSearch 기본 실습

GET 부터 검색 시작 앞선 포스트에서, 우리는 다음과 같은 테이블을 보았다. ElasticSearch RDB GET Select PUT Update POST Insert DELETE Delete 따라서, GET으로 검색을 해보도록 하자. curl -XGET http://localhost:9200/classes curl -XGET http://localhost:9200/classes?pretty 위 명령어를 통해, 우리는 curl을 사용하여 GET을 해오고 있다는 것을 볼 수 있다. 향후, 모든 Method활용에서 동일하겠지만, classes라는 index에 대해 요청하는 내용이며, pretty라는 파라미터를 통해 이를 이쁘게 보여줄 수 있다. { "error" : { "root_cause" : [ { ..

Architecture/ELK 2019.11.20