问题
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