Forum Discussion
How to find out the weight context of all Managed Properties
michalkornet I have been able to change the Context in the Managed Properties area of the SharePoint Search Admin area. But where I am stuck is that I have over 4000 managed properties and I want to see which ones aren't Context 0 without having to go into each property.
I am hoping there is some sort of script that I can run to grab that info.
Hi Mel_C13, I tested it once again on my tenant, and I am able to get this value by calling the page (
and then extracting it from the HTML. I think this is not the best solution, but it looks like it works.
The result looks like this ->
The code that should be executed on the admin site:
Let me know if it works for you. To be honest, I still cannot edit these values on my tenant, so I hope the script does not return the default values for these properties.