Skip to content

chapter10_part8:/070_Index_Mgmt/32_Metadata_all.asciidoc #300

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 3 commits into from
Oct 17, 2016

Conversation

yichao2015
Copy link

No description provided.

indexes the ((("metadata, document", "_all field")))((("_all field", sortas="all field")))values from all other fields as one big string. The `query_string`
query clause (and searches performed as `?q=john`) defaults to searching in
the `_all` field if no other field is specified.
在 <<search-lite>> 中,我们介绍了 `_all` 字段:一个索引所有字段((("metadata, document", "_all field")))((("_all field", sortas="all field")))作为一个大字段的特殊字段。 `query_string`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. a special field that indexes the values from all other fields as one big string. 不知道翻译成“一个把其它字段值当作一个大字符串来索引的特殊字段”会不会好一点。【仅供参考】

analyzer has been set on the fields where the values originate. And
like any `string` field, you can configure which analyzer the `_all`
field should use:
记住,`_all` 字段仅仅是一个((("analyzers", "configuring for all field"))) 进过分析的 `string` 字段。它使用默认分词器来分析它的值,不管这个值原本所在字段指定的分词器。就像所有 `string` 字段,你可以配置 `_all` 字段使用的分词器:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an analyzed string field:一个分词的 string 字段?

`title`, `overview`, `summary`, and `tags`. Instead of disabling the `_all`
field completely, disable `include_in_all` for all fields by default,
and enable it only on the fields you choose:
你可能想要保留 `_all` 字段作为一个全文字段,例如 `title`,`overview`,`summary` 和 `tags`。 相对于完成禁用 `_all` 字段,你可以为所有字段默认禁用 `include_in_all` 选项,仅在你选择的字段上启用:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 相对于完成禁用----》完全
  2. Instead of :并非?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of 并非感觉读得不通顺

@leo650
Copy link

leo650 commented Sep 25, 2016

LGTM

is a shotgun approach to search. By querying individual fields, you have more
flexbility, power, and fine-grained control over which results are considered
to be most relevant.
随着应用的发展,搜索需求变得更加明确,你会发现自己使用 `_all` 字段越来越少。 `_all` 字段是搜索的应急之策。通过查询指定字段,你可以更加灵活,强大和精准的控制搜索结果,提高相关性。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 _all 字段越来越少 -->越来越少使用_all 字段;“你可以更加灵活,强大和精准的控制搜索结果,提高相关性。”这么理解好像也没错,但我个人觉得翻译成"你的查询更加灵活、强大,你也可以对相关性最高的搜索结果进行更细粒度的控制"比较符合原意。你斟酌一下吧,不是必改~

`title`, `overview`, `summary`, and `tags`. Instead of disabling the `_all`
field completely, disable `include_in_all` for all fields by default,
and enable it only on the fields you choose:
你可能想要保留 `_all` 字段作为一个全文字段,例如 `title`,`overview`,`summary` 和 `tags`。 相对于完全禁用 `_all` 字段,你可以为所有字段默认禁用 `include_in_all` 选项,仅在你选择的字段上启用:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你可能想要保留 _all 字段作为一个全文字段,例如 titleoverviewsummarytags。-->你可能想要保留 _all 字段作为一个只包含某些特定字段的全文字段,例如只包含 titleoverviewsummarytags。;

analyzer has been set on the fields where the values originate. And
like any `string` field, you can configure which analyzer the `_all`
field should use:
记住,`_all` 字段仅仅是一个((("analyzers", "configuring for all field"))) 进过分词的 `string` 字段。它使用默认分词器来分析它的值,不管这个值原本所在字段指定的分词器。就像所有 `string` 字段,你可以配置 `_all` 字段使用的分词器:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

进过分词的 --》 经过分词的

@tangmisi
Copy link

LGTM

@Geolem
Copy link

Geolem commented Oct 16, 2016

LGTM

@medcl medcl merged commit a68b540 into elasticsearch-cn:cn Oct 17, 2016
@medcl medcl added done and removed to be merge labels Oct 17, 2016
tangmisi pushed a commit to tangmisi/elasticsearch-definitive-guide that referenced this pull request Oct 31, 2016
…ch-cn#300)

* chapter10_part8:/070_Index_Mgmt/32_Metadata_all.asciidoc

* review后修改

* 二次review后修改
Copy link

@candythinking candythinking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@medcl
Copy link
Member

medcl commented Jan 23, 2017

@candythinking 已经 merge 的不用 review 了,主要是open 的 pr 啦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants