How to highlight partial word when using edge_ngram filter

I am using the edge_ngram filter in my analyzer, e.g. I index a word "EVA京", it will be mapped to an array [E, EV, EVA, 京]. And then I search "EV", of cause "EVA京" can be recalled. But the highlight works wrong! The result of highlight is "<em>EVA</em>京", but not "<em>EV</em>A京".

Can someone give me a hint how to correct the highlight result?

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