App Search snippets / highligts for full text

I am using search-ui and app search to build a reactjs-based search front-end. If I want to preview the results, I can use the snippet to preview and highlight the results. However, this works only to a maximum length of 1000 which is not enough for long documents. Using the plain Elasticsearch API I could use the highlights variable to get all occurrences of a search word. Is something similar possible with plain app search? Any help would be appreciated.

Hi @alho94 :wave:

It's not possible currently with App Search, unfortunately. The snipped is indeed limited to 1000 characters and there is currently no way to get an entire document with highlighted matches. But we've seen requests for this functionality before and it's possible it'll be added in the future.

Sorry I couldn't be more help here.

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