Highlight the not correct matching keyword

Hello, I got a problem about highlight query, the highlight result maybe not matching the filter, I am not sure is this a problem with Elasticsearch or not, could you please help confirm?

This is my data in /test:
{
"id": 1,
"desc": "Enable easy troubleshooting, debugging, and profiling of virtual threads with existing JDK tools."
}

and my search condition is like: ("easy" and "disable") or ("virtual"), I parse this multi keyword with operation to BoolQueryBuilder, and search out the data, but highlight result not only contains "virtual" but also "easy" , but I only want to highlight "virtual" as hit this filter.

Many thanks

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