search a analyzed field through the stored origina

2019-08-28 17:21发布

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条回答
混吃等死
2楼-- · 2019-08-28 17:40

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.

查看更多
登录 后发表回答