Java way to analyze a field with two analyzers

I want to analyze an email with two different custom analyzers at the same time. One analyzer will extract the words from it and another one will extract the special characters from it. And, I want to return the result returned with both the analyzers in a single JSON response. Anyone have any idea how to achieve this?

You can create a subfield for you field.
The main field will use one analyzer and the sub field the other one.
But I'm not sure you can get back how it has been analyzed within the _search API.
The _analyze API does that though.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.