A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi,
Highlighting is not supported for wildcard queries and no you have to specify the fields to highlight when issuing the query.
Best Regards,
Henrik
Hi there!
I've a problem using Highlights with a wildcard search query. I'm using the following code:
If I perform the above code and look in the variable searchResult: searchResults.SearchResult.Hits.Highlightsthe Highlight array is empty for all results. If I replace the wildcard search query with a normal search like:
If I perform the above code then the Highlight array is filled with values.
Can someone tell me how I can use a wildcard search and use the Highlight functionality? Is it also possible with Highlights to just return values from the search result without specifying the fields where the Highlights are set?
Thanks!