Hibernate Search + Highlight

Hi there,

are you planning to get the highlighting features Highlighting | Elasticsearch Reference [7.12] | Elastic in the backlog ?

Let me know if there is some ways to use it yet without HighLevelRest Client.

See ya

Hello,

You can probably get highlighting to work within a normal Hibernate Search query by using extensions, which allow you to inject raw JSON into the search request. See here.

As to a proper full-Java API, there’s a ticket (HSEARCH-2192) tentatively targeting 6.1, but I don’t know when we will have time to work on it. As always the best way to get it fast is to send a PR; we can of course help you design the APIs and review your code.

EDIT: Linking to a related answer: java - How can I get the highlights of my result set in Hibernate search 6? - Stack Overflow