How to update analyzed to not analyzed query in elasticsearch?

i want to update my index mapping.
In my existing mapping query is analyzed and i want not_analyzed for term query.
how i can do this?
i have one idea is re indexing. a
any one have another idea for that?

In my opinion:
create more type in index.
One type is analyzed and one is not_analyzed.
And search whatever you want with other type.

1 Like

You'd need to reindex into the new type then, plus it may be confusing.

I'd just reindex and then leverage multifields.

1 Like