2.X/1. Getting Started 93

1. Getting Started

Elasticsearch is a real-time distributed search and analytics engine. It allows you to explore your data at a speed and at a scale never before possible. It is used for full-text search, structured search, analytics, and all three in combination:Elasticsearch 는 실시간 분산 검색 엔진이고 분석 엔진이다. 기존에는 불가능했던 속도와 규모로 데이터를 탐색 할 수 있다. full-text 검색, 구조화된 검색, 분석, 그리고 이 3개 모두를 조합하여 사용된다.Wikipedia uses Elasticsearc..

1-01. You Know, for Search…

Elasticsearch is an open-source search engine built on top of Apache Lucene™, a full-text search-engine library. Lucene is arguably the most advanced, high-performance, and fully featured search engine library in existence today—both open source and proprietary.Elasticsearch는 Apache Lucene™을 기반으로 만들어진 검색 엔진이며, full-text 검색 엔진 라이브러리이다. Lucene은, Open Source와 상업용 양쪽 모두를 살펴보더라도, 오늘날 현존하는 가장 고급스러운, 고..

1-01-01. Installing and Running Elasticsearch

The easiest way to understand what Elasticsearch can do for you is to play with it, so let’s get started!Elasticsearch로 무엇을 할 수 있는지를 이해하는 가장 쉬운 방법은 동작시켜 보는 것이다. 자, 시작해 보자!The only requirement for installing Elasticsearch is a recent version of Java. Preferably, you should install the latest version of the official Java from www.java.com.Elasticsearch를 설치하기 위한 요구 조건은 Java 최신 버전뿐 이다. 가급적이면, www.ja..

1-01-02. Talking to Elasticsearch

How you talk to Elasticsearch depends on whether you are using Java.Elasticsearch와 통신하는 방법은 Java 사용 여부에 달려 있다.Java APIeditIf you are using Java, Elasticsearch comes with two built-in clients that you can use in your code:만약 Java 를 사용한다면, Elasticsearch는, 코드에서 사용할 수 있는, 두 종류의 기본 클라이언트를 제공한다.Node clientThe node client joins a local cluster as a non data node. In other words, it doesn’t hold any dat..

1-01-03. Document Oriented

Objects in an application are seldom just a simple list of keys and values. More often than not, they are complex data structures that may contain dates, geo locations, other objects, or arrays of values.응용프로그램의 오브젝트가 단순히 간단한 Key/Value의 목록인 경우는 거의 없다. 보통 오브젝트는 날짜, 위치정보, 다른 오브젝트, 값의 배열을 포함하고 있는 복잡한 구조이다.Sooner or later you’re going to want to store these objects in a database. Trying to do this w..

1-01-04. Finding Your Feet

To give you a feel for what is possible in Elasticsearch and how easy it is to use, let’s start by walking through a simple tutorial that covers basic concepts such as indexing, search, and aggregations.Elasticsearch에서 무엇이 가능한지, 사용하기가 얼마나 쉬운지 알아보기 위해, 색인(indexing), 검색(search), aggregation 같은 기본적인 개념을 살펴볼 간단한 tutorial을 시작해보자.We’ll introduce some new terminology and basic concepts along the way, b..

1-01-05. Indexing Employee Documents

The first order of business is storing employee data. This will take the form of an employee document: a single document represents a single employee. The act of storing data in Elasticsearch is called indexing, but before we can index a document, we need to decide where to store it.첫 번째 요구사항은 직원 데이터를 저장하는 것이다. 이것은 employee document 의 형태를 가질 것이다. 하나의 document는 직원 1명을 나타낸다. Elasticsearch에 데이터를 저장..

1-01-06. Retrieving a Document

Now that we have some data stored in Elasticsearch, we can get to work on the business requirements for this application. The first requirement is the ability to retrieve individual employee data.이제 우리는 Elasticsearch에 저장되어 있는 약간의 데이터를 가지고, 이 응용프로그램의 요구사항에 대한 작업을 할 수 있다. 첫 번째 요구 사항은 직원 개인 데이터를 가져오는 기능이다.This is easy in Elasticsearch. We simply execute an HTTP GET request and specify the address o..

1-01-07. Search Lite

A GET is fairly simple—you get back the document that you ask for. Let’s try something a little more advanced, like a simple search!GET 은 상당히 간단하다. request하면 document를 받을 수 있다. 간단한 검색처럼, 약간 더 고급스러운 뭔가를 해 보자.The first search we will try is the simplest search possible. We will search for all employees, with this request:첫 번째 검색은 가능한 가장 단순한 검색이다. 아래의 request를 가지고, 모든 직원을 검색할 것이다.GET /megacorp/empl..

1-01-08. Search with Query DSL

Query-string search is handy for ad hoc searches from the command line, but it has its limitations (see Search Lite). Elasticsearch provides a rich, flexible, query language called the query DSL, whichallows us to build much more complicated, robust queries.query-string 검색은 command line에서 바로(ad hoc) 검색하기에 편리하다. 하지만 한계가 있다(Search Lite 참조). Elasticsearch는 풍부하고, 유연한, query DSL 이라는 query language를 제..