routing 7

v2.0-05. CRUD and routing changes

Explicit custom routingeditCustom routing values can no longer be extracted from the document body, but must be specified explicitly as part of the query string, or in the metadata line in the bulk API. See Type meta-fields for an example.사용자 정의 routing value는 더 이상 document body에서 추출할 수 없다. query string의 일부 또는 bulk API에서 metadata line에 명시적으로 지정하해야 한다. Type meta-fields에서 예제를 볼 수 있다.Routing hash f..

1-04-1. Routing a Document to a Shard

When you index a document, it is stored on a single primary shard. How does Elasticsearch know which shard a document belongs to? When we create a new document, how does it know whether it should store that document on shard 1 or shard 2?document를 색인하면, 특정 primary shard에 저장된다. Elasticsearch는 document가 어느 shard에 속해 있는지 어떻게 알까? 새로운 document를 생성하면, document를 shard 1 또는 2 중 어느 shard에 저장하는지 어떻게 알까?Th..

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-09. Distributed Search Execution

Before moving on, we are going to take a detour and talk about how search is executed in a distributed environment. It is a bit more complicated than the basic create-read-update-delete(CRUD) requests that we discussed in Distributed Document Store.더 나아가기에 앞서, 분산 환경에서 검색을 실행하는 방법에 대해 이야기하려 한다. 이것은 Distributed Document Store에서 이야기했던, 기본적인 CRUD(create-read-update-delete) 보다 약간 더 복잡하다.Content Warni..

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

6-4-11. Shared Index

We can use a large shared index for the many smaller forums by indexing the forum identifier in a field and using it as a filter:포럼의 식별자를 field에 색인 하고, 그것을 filter로 사용하여, 많은 수의 작은 포럼에 대해 거대한 공유된 index를 사용할 수 있다.PUT /forums { "settings": { "number_of_shards": 10 }, "mappings": { "post": { "properties": { "forum_id": { "type": "string", "index": "not_analyzed" } } } } } PUT /forums/post/1 { "forum_..