2.X/1. Getting Started

1-07. Full-Body Search

drscg 2017. 9. 30. 20:11

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 API를 사용해야 한다. 대부분의 매개변수가 query string이 아닌, HTTP request body로 넘겨지기 때문에 이렇게 불린다.

Request body search—henceforth known as search—not only handles the query itself, but also allows you to return highlighted snippets from your results, aggregate analytics across all results or subsets of results, and return did-you-mean suggestions, which will help guide your users to the best results quickly.

request body 검색(이제부터는 그냥 search)은 query 자체를 처리할 뿐만 아니라, 결과에 하이라이트 표시를 할 수 있고, 결과 전체나 일부로 aggregation 분석을 할 수 있다. 그리고, 사용자에게 최선의 결과를, 빠르게 안내해 주기 위해, 검색 제안(정확한 의미를 파악한 제안: did-you-mean suggest) 을 반환할 수 있다.

'2.X > 1. Getting Started' 카테고리의 다른 글

1-06-4. Mapping  (0) 2017.09.30
1-06-5. Complex Core Field Types  (0) 2017.09.30
1-07-1. Empty Search  (0) 2017.09.30
1-07-2. Query DSL  (0) 2017.09.30
1-07-3. Queries and Filters  (0) 2017.09.30