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:
var searchResult = SearchClient.Instance.Search<BasePage>()
.For(searchTerm)
.WithHighlight(w => w.SearchResultText, a => a.NumberOfFragments = 20).GetContentResult();
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?
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!