Skip to content

Conversation

@lujun9972
Copy link

No description provided.

// 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” 这个完整短语(字符串)作为查询条件来搜索!

@medcl medcl closed this Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants