Skip to content

Update 55_Not_analyzed.asciidoc #483

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

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion 110_Multi_Field_Search/55_Not_analyzed.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ GET /_validate/query?explain
--------------------------------------------------
// SENSE: 110_Multi_Field_Search/55_Not_analyzed.json

因为 `title` 字段是未分析过的,Elasticsearch 会将 “peter smith” 这个完整的字符串作为查询条件来搜索
因为 `title` 字段是未分析过的,Elasticsearch 会使用组成 “peter smith” 这个完整的字符串中的单个词作为查询条件来搜索
Copy link
Member

Choose a reason for hiding this comment

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

Elasticsearch前面加上一个“而” 怎么样?

Copy link
Author

Choose a reason for hiding this comment

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

这个,我也拿不准。而一般表示转折,但是这里没有转折的意思在里面吧。
加个"而且"表示递进行不行?

Copy link
Member

Choose a reason for hiding this comment

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

嗯,前半句主要说是字段未分析,而后半句则是实际的操作,和因为有点对不上。

Copy link
Author

Choose a reason for hiding this comment

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

嗯,就按你说的改吧,我觉得也不怎么影响理解.

Copy link
Member

Choose a reason for hiding this comment

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

辛苦了,感觉要清晰一点点。

Choose a reason for hiding this comment

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

好像把意思整个改反了?应该是用“peter smith”作为查询条件能找到,如果只用“peter”或者“ smith”应该查不到。
所以这句话应该是
因为 title 字段是未分析过的,Elasticsearch 会使用组成 “peter smith” 这个完整短语(字符串)作为查询条件来搜索!


title:peter smith
(
Expand Down