i want to add some default text in search explorer in azure cognitive search

Singh, Shruti 20 Reputation points
2023-02-07T08:00:04.84+00:00

Hi, while spell correction, i want to add default text in search explorer, example - "Did u mean 'calender' instead of clander" in azure cognitive search. Currently spell check is implemented automatically but i need spell correction with such kind of default message. How to do that?

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.
707 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2023-02-08T14:01:21.7366667+00:00

    Thanks for reaching here! You can use the speller parameter in your query request to enable spell checking in Azure Cognitive Search.

    The speller parameter is supported for all query types: simple, full, and the semantic option currently in public preview.

    To use spell check, you'll need the following:

    • A search service at Basic tier or above, in any region. An existing search index with content in a supported language.
    • A query request that has "speller=lexicon", and "queryLanguage" set to a supported language.
    • Spell check works on strings passed in the "search" parameter. It's not supported for filters.
    • For More details: Add spell check - Azure Cognitive Search | Microsoft Learn Let us know if further query.
    0 comments No comments