search a analyzed field through the stored original value in elasticsearch

混江龙づ霸主 提交于 2020-01-16 20:01:54

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/24156132/search-a-analyzed-field-through-the-stored-original-value-in-elasticsearch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!