none
Get Result Text in Search Results Search REST API Sharepoint 2013 RRS feed

  • Question

  • Hi,

    I am using Search REST API to search in Sharepoint2013 lists. I am able to retrieve the data using it. Along with the result I want to show the entire text content where query text is found. Also if possible in which field query text is found.

    Thanks,

    Sagar

    Thursday, June 8, 2017 6:16 PM

All replies

  • Hi,

    Can you please check the below

    https://social.msdn.microsoft.com/Forums/office/en-US/f9e67289-fdae-4dd5-9155-360d621fdfc1/multiple-values-in-querytext-rest-sharepoint-search?forum=sharepointdevelopment

    https://sharepoint.stackexchange.com/questions/166435/search-by-content-type-using-search-api-in-rest


    Please remember to click Mark as Answer on the answer if it helps you

    Thursday, June 8, 2017 9:04 PM
  • Thanks for your reply. But these links does not mention anything about Search Result field. I just want to show the field content where Search text is found & if possible then that field name as well.

    Ex. I have list with field1, field2. Below is the data in the list.

    field1           | field2

    test-field1    | My text field2

    If I search for "text" then I want to show in the result the column text "My text field2". And also if possible then field name "field2" as well.

    

    Tuesday, June 13, 2017 7:18 PM