Forum Discussion
Martin-Coupal
Aug 30, 2021Iron Contributor
SharePoint Search API response schema changes
Hi, I've started noticing issues with search REST api results lately where there are some new properties returned in the schema and some null values. Ex: _api/search/query?querytext='Filename:B31...
- Sep 03, 2021My take is this. You should only expect properties you ask for. These may or may not have values depending on the property. As such, you should not have a rigid schema to validate returned data.
DocumentSignature/CollapseStatus are by no means new ones. As for other props these can and will change as we make changes. And the schema contract is a weak one and you should only count on any public documented properties or those you have created yourself.
Hope this makes sense 🙂
Martin-Coupal
Sep 06, 2021Iron Contributor
Hi Mikael, I agree and that is what I've done to fix my schema parsing. However I'm wondering why results properties like Culture is now returning null. Is this an issue?
Thanks.
Thanks.
MikaelSvenson
Microsoft
Sep 07, 2021Martin-Coupal Not really as Culture is just echoing the culture passed in on the query. If you want to know the language of an item look at DetectedLanguage.