How to use suggestion with extra fields on azure search

youssef125 266 Reputation points
2022-06-08T14:12:51.163+00:00

I'm using a tutorial provided by microsoft regarding azure search: t
he uri: https://victorious-beach-0ab88b51e.azurestaticapps.net/
code source : https://github.com/Azure-Samples/azure-search-javascript-samples/tree/master/search-website

when you look for a book for example, the suggestion list looks like this :
209508-image.png

the bihavouir that I'm looking for is, instead of having just the author and the title, I need to display the type of the filed Imean, if it is an author it should be displayed like this :

J. Daniels (author)

if it is a title it should be displayed like this :

J is for Judgment(Kinsey Millhone #10) (title)

is it possible to do that with azure search ?

thanks

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,062 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.