{"id":1841,"date":"2013-05-06T05:08:33","date_gmt":"2013-05-06T05:08:33","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=1841"},"modified":"2024-04-26T12:59:38","modified_gmt":"2024-04-26T12:59:38","slug":"fast-sharepoint-property-mapping-report","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/fast-sharepoint-property-mapping-report\/","title":{"rendered":"FAST SharePoint Property Mapping Report"},"content":{"rendered":"<h2>Generating a FAST SharePoint Property Mapping Report<\/h2>\n<p>In Search, it is not an exageration to say the property mapping is the heart of the customized search intelligence. Managed properties allow search to be customized, to serve an organization\u2019s needs. I thought it would be useful to report on the mapping of the managed properties to crawled properties. I use a CSV format for the report, where a \u2018|\u2019 is used as the delimiter, and a semi-colon is used to separate crawled properties. Using Excel, one can easily convert pipe-delimited into columns.<\/p>\n<p>The first thing we want to do is get the collection of managed properties using Get-FASTSearchMetadataManagedProperty. Then for each Managed Property, we get the associated crawled properties using the getcrawledPropertyMappings() method. Here\u2019s the full script:<\/p>\n<pre lang=\"php\">\r\n$ReportFileName = &quot;C:tempMappingReport.csv&quot;\r\n$sep = '|'\r\ncls\r\n \r\n$LineOut = &quot;Name$($sep)Description$($sep)Type$($sep)Mapping&quot;\r\nadd-content $ReportFileName $($LineOut)\r\n \r\n$mps = Get-FASTSearchMetadataManagedProperty\r\n \r\nForeach ($MP in $mps)\r\n{\r\n    $q = $MP.getcrawledPropertyMappings();\r\n    $CPs=$null\r\n    if ($q.gettype().Name -eq &quot;CrawledPropertyMappingImpl&quot;) \r\n    {\r\n        foreach ($cp in $q)\r\n        {\r\n            $CPs = &quot;$($cps);$($cp.name)&quot;\r\n        }\r\n        if ($CPs -ne $null)\r\n        {\r\n            $cps = $CPs.remove(0,1);\r\n        }\r\n    }\r\n    else\r\n    {\r\n        $CPs = $q.gettype().Name;\r\n    }\r\n \r\n$LineOUt = &quot;$($MP.Name)$($sep)$($MP.Description)$($sep)$($MP.Type)$($sep)$($CPS)&quot;\r\nadd-content $ReportFileName $($LineOut)\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Generating a FAST SharePoint Property Mapping Report In Search, it is not an exageration to say the property mapping is the heart of the customized search intelligence. Managed properties allow search to be customized, to serve an organization\u2019s needs. I thought it would be useful to report on the mapping of the managed properties to [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":1845,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[58],"tags":[],"class_list":["post-1841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fast-search"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=1841"}],"version-history":[{"count":1,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1841\/revisions"}],"predecessor-version":[{"id":1847,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1841\/revisions\/1847"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/1845"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=1841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=1841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=1841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}