Closed kidylee closed 4 years ago
@kidylee Thanks a lot for this improvement. Do you think you have the posibility to add a unit test to validate the fix ?
I will do it when I have time.
Unit test has been add, please have a check, thank.
@kidylee Thanks I will check it right now
Symptom
Current JestElasticsearchTemplate doesn't respect custom highlight from SearchQuery.
Problem
The template re-creates highlight builder when it detects highlight fields been set.
Solution
Respect the highlight builder from SearchQuery object and support the old re-creation way for backward compatibility.