Upload
perficient-inc
View
553
Download
2
Embed Size (px)
Citation preview
Search Customizations
Customizations
• Display Templates
• Query Rules, Result Sources, Result Types
• Segmentation
• Search Result Web Part
• Customized Search Result Web Part
10/11/2013 2
Display Templates
• Control
– Search Results
– Refiners
– Column UI
• Pattern:
– Control List
• Group
– Item• Render after all items are rendered using
– http://blogs.perficient.com/microsoft/2012/09/quick-tip-display-templates-and-jquery-plugins-in-sharepoint-2013/
• AddPostRenderCallback(ctx, function() {}
• Render individual values
– http://blog.jussipalo.com/2013/03/sharepoint-2013-overriding-value.html
10/11/2013 3
Segmentation
• Define user segment terms
• Define query rules
– Add segments which apply to that query rule
• Create a custom web part (inherits from CBSWP)
• Override OnLoad function
– Get the user specific content
– Get the corresponding term for the user’s content
– Set the term ID in the data provider’s property bag with the key
“UserSegmentTerms”
10/11/2013 4
Search Web Part Customization
• Modify query in the web part
• Web part fires Query
• Results are returned
• Client side renders results
• How do you boost on user’s profile or other property value?
10/11/2013 5