Using powershell how do you create a content sorce that uses a BDC?
Documentation on Technet for New-SPEnterpriseSearchCrawlContentSource is not very clear on how to do this.
So far this seems most reasonable to me but it doesn’t work.
$searchapp = Get-SPEnterpriseSearchServiceApplication "MySearchApplication"
New-SPEnterpriseSearchCrawlContentSource -name "My BDC Content Source" -searchapplication $searchApp -Type Business -LOBSystemSet "NameOfMyBdc"
It creates the content source of type Business Data Connectivity but the specified BDC is not checked off.
This is what worked for me.
You can also do it using the API like this. I have no idea what the Guid PartitionId parameter of the ConstructStartAddress method is all about but it doesn’t seem to work with any other Guid.