Skip to content

fix the translate error for 'shards' #443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 060_Distributed_Search/15_Search_options.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

偏好这个参数 `preference` 允许 ((("preference parameter")))((("search options", "preference"))) 用来控制由哪些分片或节点来处理搜索请求。 它接受像 `_primary`,
`_primary_first`, `_local`, `_only_node:xyz`, `_prefer_node:xyz`, 和
`_shards:2,3` 这样的值, 这些值的在
`_shards:2,3` 这样的值, 这些值在
{ref}/search-request-preference.html[search `preference`]
文档页面被详细解释。

Expand All @@ -22,7 +22,7 @@
而副本分片处理请求又是另一种顺序。

这就是所谓的 _bouncing results_ 问题: 每次用户刷新页面,搜索结果表现是不同的顺序。
这种问题可以通过让同一个用户一直使用同样的节点处理来避免
让同一个用户始终使用同一个分片,这样可以避免这种问题
可以设置 `preference` 参数为一个特定的任意值比如用户会话ID来解决。

****
Expand Down