Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. SharePoint Search API for Keywords and Synonyms

SharePoint Search API for Keywords and Synonyms

Scheduled Pinned Locked Moved SharePoint
sharepointjsonhelp
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kshitiz2009
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups