문제

I have custom list in sharepoint online which contains 2 multi line of text fields (Rich text). I want to search content of any of the two field, for that I have written following call:

https://xxx/_api/search/query?querytext='*software*+Site:https://xxx/Lists/DemoList/'

By above call, I'm able to get proper result but I'm not able to display column values because rest call returns null value for multi line of text field.

Please help me.

도움이 되었습니까?

해결책

I found the answer. The call is correct but previously I was trying with list columns but when I try with site columns and content type then it is works for me.

After creating site column and content type we can find our columns in "Search Schema". Here are the steps:

  1. Open Site Settings
  2. Click on "Search Schema" under "Site Collection Administration"
  3. Search with your column name "Address"
  4. It will be display result of column with "AddressOWSMTXT"
  5. The same column name which we found, have to use in search call to display multi line column value.

Do the same for all type columns like choice column, datetime, yes/no, etc.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top