How HighlightBuilder work on wildcardQuery

i have a field(not_analyzed)

now i want to use wildcardQuery work on this field.

for example:

i use 'hell*' to query, and expect ‘hello,world’

not ‘hello,world

First: don't use wildcards!

Then I don't see the difference between hello,world and hello,world.

Could you provide a full recreation script as described in

It will help to better understand what you are doing.
Please, try to keep the example as simple as possible.

First of all, thank you very much!

i want to the result is

<em> hell</em>o,world

The actual return

<em> hello,world</em>

i hope the part around by tag

Do you mean you are using highlighting?

A full reproduction script as I said would help

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