Thursday, August 2, 2018

S1E18: Cascading Drop Down using SharePoint restAPI Search Refiners

S1E18: Cascading Dropdowns using SharePoint Search Refiner
RestAPI

Taking our search drop-down to another level with cascading
drop-down logic to filter search for 100K job postings list. We walk-through
out the process of filtering search by a refiner value and explain why this
better and more accurate than a simple search filter.

The response time is pretty quick, and because we are
leveraging the power of SharePoint search and refiners, we are able to do this
against 100K items in milliseconds.

We also, walk through the process of passing data from one
angularJS component to another component housed on a separate page.

Key Code Snippets
====================
1) SharePoint Search RestAPI Scopes to a Result Source Name
(not guid)
Note: guids stinks, because they are different per
environment, thus requiring you to change the code when deployed...SMH

/_api/search/query?querytext='*'&rowlimit=1&refiners='RefinableString00,RefinableString01'&selectproperties='Title'&properties='SourceName:Job
Postings,SourceLevel:SPSite'

2) How to filter by a refiner value (URL query parm)
&refinementfilters='RefinableString00:
equals("Business Development")'

3) Here is the entire project:
http://snicdn.s3.amazonaws.com/job-portal/JobPortal-Sample-2018-08-01.zip

#spEasyDev #sharepointrefiners #ngsharepoint #spclassroom




#spclassroom #spEasyDev #bootstrapandsharepoint
#distortedspribbon #sharepointsearch #sharepointrestapi #sharepointpagelayouts
#sp2013 #sp2016 #ngsharepoint #custommasterpage #sharepoint2013 #sharepoint2016
#sharepoint #sharepointandangularjs #odata #sharepointlargelists
#sharepointdevelopertutorial