SP2010 Crawled Properties
-
09-12-2019 - |
Question
I'm creating user profile properties and making them searchable. But now, I need to set a last property of the Crawled Property. So how can I check the "Include values for this property in the search index" on a Crawled Property WITH C#??? It's located under the "Mappings to managed properties" section.
Solution
I've found a solution. After you link the mapped property to the crawled property, you need to update the crawled property:
crawledProperty.IsMappedToContents = true;
crawledProperty.Update();
And then it should work...
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange