Skip to content

Commit

Permalink
[DOCS] Fix multi-value search preference docs (#76822) (#76833)
Browse files Browse the repository at this point in the history
You can't combine a `_shards` search `preference` argument with `<custom-string>`.
  • Loading branch information
jrodewig authored Aug 23, 2021
1 parent 0a9649e commit 74f86c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/reference/search/search.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ If possible, run the search on the specified nodes IDs. If not, select shards
using the default method.
`_shards:<shard>,<shard>`::
Run the search only on the specified shards. This value can be combined with
other `preference` values, but this value must come first. For example:
`_shards:2,3|_local`
Run the search only on the specified shards. You can combine this value with
other `preference` values, excluding `<custom-string>`. However, the `_shards`
value must come first. For example: `_shards:2,3|_local`.
<custom-string>::
`<custom-string>`::
Any string that does not start with `_`. If the cluster state and selected
shards do not change, searches using the same `<custom-string>` value are routed
to the same shards in the same order.
Expand Down

0 comments on commit 74f86c8

Please sign in to comment.