query-string 4

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를 제..

1-05-4. Search Lite

There are two forms of the search API: a "lite" query-string version that expects all its parameters to be passed in the query string, and the full request body version that expects a JSON request body and uses a rich search language called the query DSL.search API에는 두 가지 형식이 있다. 하나는 query-string 의 "아류(lite)" 버전이다. 이 버전은 모든 매개변수가 query string에 전달된다. 다른 하나는 full request body 버전이다. 이 버전은 JSON requ..

1-07. Full-Body Search

Search lite—a query-string search—is useful for ad hoc queries from the command line. To harness the full power of search, however, you should use the request body search API, so called because most parameters are passed in the HTTP request body instead of in the query string.가벼운(lite) 검색(query-string search)은 command line에서 직접 query를 실행하는데 유용하다. 그러나, 검색의 모든 기능을 이용하기 위해서는, request body search AP..