Implementing BCS-Business Connectivity Services - Sharepoint 2013- Office 365
Integrating the BCS with Search in SharePoint 2013
-
Upload
sparkhound-inc -
Category
Technology
-
view
142 -
download
4
description
Transcript of Integrating the BCS with Search in SharePoint 2013
![Page 1: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/1.jpg)
1
Integrating the BCS with Search in SharePoint 2013
Andy Boyet, CISSPSharePoint Architect @ Sparkhound
[email protected]: @andrewboyet
LinkedIn: https://www.linkedin.com/in/andyboyet
![Page 2: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/2.jpg)
2
IntroductionGoal: Understand concepts for the BCS and how to integrate it with Search
• What is the BCS• BCS Feature Set• Enhancing the BCS for Search
![Page 3: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/3.jpg)
3
What is the BCS?Feature of SharePoint that facilitates integration with other systems
How?• Introduced in 2007 as Business Data Catalog (BDC)• Data model description• Tooling has improved
![Page 4: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/4.jpg)
4
BCS Feature Set
![Page 5: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/5.jpg)
5
Components
![Page 6: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/6.jpg)
6
ToolsSharePoint Designer: adds to the BCS Store
Visual Studio: Deploy wsp and activate farm feature
![Page 7: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/7.jpg)
7
Content TypeHierarchical reusable collection of columns, workflow, and other settings.Item
Event Link Task
![Page 8: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/8.jpg)
8
External Content TypesLike normal Content Types, only external
Tools for Creating:• SharePoint Designer (.Net, SQL, WCF)• Visual Studio
XML behind the scenes
Defined as Entities
![Page 9: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/9.jpg)
9
ECTs in SharePoint Designer
![Page 10: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/10.jpg)
10
ECTs in SharePoint Designer
![Page 11: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/11.jpg)
11
Visual Studio BDC Explorer
![Page 12: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/12.jpg)
12
App-Scoped ECTs• Introduced in 2013• Isolated from the rest of the farm• Requires Visual Studio• One model/app• Only ODATA sources
![Page 13: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/13.jpg)
13
Presentation Features• External List• External Data Column
![Page 14: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/14.jpg)
14
Extensibility Features• REST APIs– http://<sitecollection>/<site>/_api/
• CSOM APIs• Server OM– .Net
• Remote Event Receivers– New in 2013
![Page 15: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/15.jpg)
15
Connector Framework• ODATA • WCF• SQL• .NET
![Page 16: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/16.jpg)
16
Profile Pages• Similar to List Forms• Can be overridden - DisplayUriField
![Page 17: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/17.jpg)
17
Secure Store Service• Used for Storing Credentials• Accessible through CA and Powershell
![Page 18: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/18.jpg)
18
External Data SearchTwo Parts• BCS Model – Additional properties required for search support
• Connector
![Page 19: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/19.jpg)
19
ShowInSearchUISet on a LobSystemInstance element
![Page 20: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/20.jpg)
20
Search UI
![Page 21: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/21.jpg)
21
BCS Requirements for Search• Finder and Specific Finder Methods• DisplayUri• Permissions for Search Account• BinarySecurityDescriptorAccessor• StreamAccessor
![Page 22: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/22.jpg)
22
Incremental Crawl• ChangedIdEnumerator Method• DeletedIdEnumerator Method• LastModifiedTimeStamp
![Page 23: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/23.jpg)
23
Caution• Version numbers must be incremented to pick up
changes
![Page 24: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/24.jpg)
24
InputUriProcessor• Specifies the name of the class that processes the
input URL before passing it to the connector. Applies to .NET and custom BCS indexing connectors.
![Page 25: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/25.jpg)
25
OutputUriProcessor• Specifies the name of the class that processes the
output URL before passing it to the search system from the connector. Applies to .NET and custom BCS indexing connectors.
![Page 26: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/26.jpg)
26
SystemUtilityTypeNameSpecifies the name of the class that implements the StructuredRepositorySystemUtility class. Applies to custom BCS indexing connectors.
<LobSystems> <LobSystem Name="MyFileSystem" Type="Custom"> <Properties> <Property Name="SystemUtilityTypeName" Type="System.String">MyFileConnector.MyFileConnector, MyFileConnector, Version=1.0.0.0, Culture=neutral, PublicKeyToken=15865f58b9878bf8</Property></Properties><Entities>
![Page 27: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/27.jpg)
27
TitleFound in Entity Elements• Specifies the title of the external content type to
display in search results.
![Page 28: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/28.jpg)
28
DefaultLocaleFound in Entity Elements• Specifies the locale string. You can override this
value by using the LCIDField property or the CultureField property.
![Page 29: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/29.jpg)
29
RootFinderFound in Method Elements• Specifies the Finder method to use to enumerate
the items to crawl.
![Page 30: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/30.jpg)
30
DirectoryLinkFound in Association Elements• Specifies that BCS should navigate associations.
Required for hierarchical crawling.
![Page 31: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/31.jpg)
31
DeletedCountFieldFound in Method Elements• Specifies the deleted count value.
![Page 32: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/32.jpg)
32
WindowsSecurityDescriptorFieldFound in Method Elements• Specifies the Windows Security descriptor for the
item• GetSecurityDescriptor method
![Page 33: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/33.jpg)
33
AuthorFieldFound in Method Elements• Specifies the author name to display in search
results.
![Page 34: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/34.jpg)
34
DisplayUriFieldFound in Method Elements• Specifies the URL to display in search results• Overrides the Profile Page• May require a restart of search service
![Page 35: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/35.jpg)
35
LastModifiedTimeStampFieldFound in Method Elements• Specifies the external item's timestamp to display
in search results. • Used for incremental crawling.
![Page 36: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/36.jpg)
36
DescriptionFieldFound in Method Elements• Specifies the description to display in search
results.
![Page 37: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/37.jpg)
37
LCIDFieldFound in Method Elements• Specifies the locale ID (LCID) for the
DescriptionField. If this is not specified, the default word breaker is used.
![Page 38: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/38.jpg)
38
CultureFieldFound in Method Elements• Specifies the culture for the DescriptionField.
![Page 39: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/39.jpg)
39
ExtensionFound in Method Elements• Specifies the file name extension for the crawlable
stream. • Default extension is .txt.
![Page 40: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/40.jpg)
40
MimeTypeFound in Method Elements• Specifies the MIME type for the crawlable stream.
If not specified, the default extension is .txt. • Takes precedence over the Extension Property
![Page 41: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/41.jpg)
41
MimeType Example<MethodInstance Name="LargeResumeAccessor" Type="StreamAccessor" ReturnParameterName="StreamData" ReturnTypeDescriptorName="ResumeLarge"> <Properties> <Property Name="MimeType" Type="System.String">application/vnd.openxmlformats-officedocument.wordprocessingml.document</Property> <Property Name="FileName" Type="System.String">Resume Large.docx</Property> <Property Name="MimeTypeField" Type="System.String">ResumeLargeMIME</Property> <Property Name="FileNameField" Type="System.String">ResumeLargeName</Property> <Property Name="MaxFileSizeInKB" Type="System.Int32">120</Property> </Properties></MethodInstance>
![Page 42: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/42.jpg)
42
UseClientCachingForSearch Found in Method Elements• Specifies whether the crawler caches the content
during enumeration.
![Page 43: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/43.jpg)
43
EnumerateIdsOnlyFound in FilterDescriptor Elements• Specifies whether to return IDs only in the
IDEnumerator.
![Page 44: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/44.jpg)
44
CrawlStartTimeFound in FilterDescriptor Elements• Contains the start time of the last crawl.
![Page 45: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/45.jpg)
45
Configure SearchConfigure Search Service App$searchapp = Get-SPEnterpriseSearchServiceApplication
New-SPEnterpriseSearchCrawlCustomConnector -SearchApplication $searchapp -protocol myfile -ModelFilePath "\\ServerName\FolderName\MyFileModel.xml" -Name myfile
Registry Key[HKEY_LOCAL_MACHINE]\ SOFTWARE\Microsoft\Office Server\15.0\Search\Setup\ProtocolHandlers\myfile
![Page 46: Integrating the BCS with Search in SharePoint 2013](https://reader034.fdocuments.us/reader034/viewer/2022051411/547c382cb47959b1508b45dc/html5/thumbnails/46.jpg)
46
Thanks to all our Sponsors!