通过弹性搜索中存储的原始值搜索分析的字段 [英] search a analyzed field through the stored original value in elasticsearch
本文介绍了通过弹性搜索中存储的原始值搜索分析的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法?
注意:我无法使字段 not_analyzed
,因为我也在搜索分析的值。
解决方案
一个href =http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#_multi_fields_3 =nofollow>多字段类型,这将允许两个字段都分析分析全文搜索, not_analyzed
用于完全匹配。
In elastic search I have a field that is analyzed and I am also storing the original value. I want to search the field with the stored value not the analyzed value.
Is there any way to do it?
note: I cannot make the field not_analyzed
, because I am searching the analyzed values also.
解决方案
Take a look at the multi fields type, which will allow to two store the field both analyzed
for full text search and not_analyzed
for exact matches.
这篇关于通过弹性搜索中存储的原始值搜索分析的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文