Skip to content

Commit

Permalink
doc: deprecate _primary and _replica shard option
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhatn committed Sep 26, 2017
1 parent 8e134d6 commit 51267e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/reference/search/request/preference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ The `preference` is a query string parameter which can be set to:
[horizontal]
`_primary`::
The operation will go and be executed only on the primary
shards.
shards. The `_primary` option is deprecated in 6.0.0 and will be removed in Elasticsearch 7.0.

`_primary_first`::
The operation will go and be executed on the primary
shard, and if not available (failover), will execute on other shards.
The `_primary_first` option is deprecated in 6.0.0 and will be removed in Elasticsearch 7.0.

`_replica`::
The operation will go and be executed only on a replica shard.
The `_replica` option is deprecated in 6.0.0 and will be removed in Elasticsearch 7.0.

`_replica_first`::
The operation will go and be executed only on a replica shard, and if
not available (failover), will execute on other shards.
The `_replica_first` option is deprecated in 6.0.0 and will be removed in Elasticsearch 7.0.

`_local`::
The operation will prefer to be executed on a local
Expand All @@ -33,7 +36,7 @@ The `preference` is a query string parameter which can be set to:
`_shards:2,3`::
Restricts the operation to the specified shards. (`2`
and `3` in this case). This preference can be combined with other
preferences but it has to appear first: `_shards:2,3|_primary`
preferences but it has to appear first: `_shards:2,3|_local`

`_only_nodes`::
Restricts the operation to nodes specified in <<cluster,node specification>>
Expand Down

0 comments on commit 51267e7

Please sign in to comment.