[ElasticSearch] 자꾸 까먹어..ㅡ.ㅡ;; (preference)
Elastic/Elasticsearch 2014. 8. 26. 14:26http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-preference.html
preference
Controls a preference
of which shard replicas to execute the search request on. By default, the operation is randomized between the shard replicas.
The preference
is a query string parameter which can be set to:
| The operation will go and be executed only on the primary |
| The operation will go and be executed on the primary shard, |
| The operation will prefer to be executed on a local allocated |
| Restricts the search to execute only on a node with the |
| Prefers execution on the node with the provided node id |
| Restricts the operation to the specified shards. ( |
Custom (string) value | A custom value will be used to guarantee that |