How HighlightBuilder work on wildcardQuery


(Dear Nero) #1

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


(David Pilato) #2

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.


(Dear Nero) #3

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


(David Pilato) #4

Do you mean you are using highlighting?

A full reproduction script as I said would help


(system) closed #5

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