timeout 5

1-04-3. Creating, Indexing, and Deleting a Document

Create, index, and delete requests are write operations, which must be successfully completed on the primary shard before they can be copied to any associated replica shards, as shown in Figure 9, “하나의 document를 생성, 색인 또는 삭제”.create, index, delete request는 쓰기 연산이다. Figure 9, “하나의 document를 생성, 색인 또는 삭제”에서 볼 수 있듯이, 관련된 replica shard에 복사하기 전에, primary shard에서 성공적으로 완료되어야 한다.Figure 9. 하나의 document를..

1-04-5. Partial Updates to a Document

The update API , as shown in Figure 11, “document의 부분적 업데이트”, combines the read and write patterns explained previously.Figure 11, “document의 부분적 업데이트”에서 보듯이, update API는 위에서 설명한 읽기와 쓰기 형태의 의 조합이다.Figure 11. document의 부분적 업데이트 Here is the sequence of steps used to perform a partial update on a document:document의 부분적인 업데이트를 수행하는데 사용되는 일련의 과정을 나열하였다.The client sends an update request to Node 1.클라이..

1-05-1. The Empty Search

The most basic form of the search API is the empty search, which doesn’t specify any query but simply returns all documents in all indices in the cluster:search API의 가장 기본적인 형태는, 어떤 query도 지정하지 않은, empty search 이다. cluster에 있는 모든 indices의 모든 document가 반환된다.GET /_searchCOPY AS CURLVIEW IN SENSE The response (edited for brevity) looks something like this:response를 요약하면, 아래와 같다.{ "hits" : { "total"..

1-09-3. Search Options

A few optional query-string parameters can influence the search process.검색 프로세스에 영향을 미칠 수 있는, 몇 개의 선택적 query-string 매개변수가 있다.preferenceeditThe preference parameter allows you to control which shards or nodes are used to handle the search request. It accepts values such as _primary, _primary_first, _local, _only_node:xyz, _prefer_node:xyz, and _shards:2,3, which are explained in detail on the sea..

1-09-4. Scroll

A scroll query is used to retrieve large numbers of documents from Elasticsearch efficiently, without paying the penalty of deep pagination.scroll query는 Elasticsearch에서 매우 많은 수의 document를, deep 페이지 계산의 불이익 없이, 효과적으로 가져오기 위해 함께 사용된다.Scrolling allows us to do an initial search and to keep pulling batches of results from Elasticsearch until there are no more results left. It’s a bit like a cursor ..