SharePoint Search API for Keywords and Synonyms
SharePoint
1
Posts
1
Posters
1
Views
1
Watching
-
I have been trying to retrieve search results using API and passing "Keywords" or "Synonyms" as parameter. I have also specified Best Bets When I pass a keyword as a parameter then I am able to retrieve the values (i.e search results). However I am unable to retrieve the values when I pass a "Synonyms" as parameter it throws an error. e.g.
SearchContext searchContext = SearchContext.GetContext(spsite);
Keywords keywords = new Keywords(searchContext, new Uri(url));
SynonymCollection synColl = keywords.AllKeywords[searchTerm].Synonyms;Does anyone know which API to Use so that I can retrieve the Search results based on Synonyms. Thanks