SlideShare a Scribd company logo
SharePoint 2013 Search Based
Solutions
Many MILEVSKI, NEXTSENSE
ways to query SharePoint Search
DARKO

SHAREPOINT AND PROJECT CONFERENCE ADRIATICS 2013
ZAGREB, NOVEMBER 27-28 2013
sponsors
http://darkomilevski.info
Agenda
• SharePoint 2013 Enterprise Search Overview
• Keyword Query Language Overview
• Developing Server Side Search
• Managed Server Side Object Model
• Demo

• Developing Client Side Search
•
•
•
•
•
•

Managed Client Side Object Model
Demo
JavaScript Client Side Object Model
Demo
REST APIs
Demo
What about search?
• Are you using Bing or Google?
• If you are a Dev, how many times have you tried to develop
without using a search engine?
• Was it good experience?
• Are using Search in SharePoint?
• Did you know that you can customize and develop over the
SharePoint Search?
• Do you know about rich Search functionalities like Managed
Properties, Result Sources, Query Rules, Keyword Query
Language, etc., ….
SharePoint 2013 Enterprise Search
• Search in 2010 + FAST Search Server
• Single Search
• Server vs. Foundation
• No more Express edition

• Deprecated Features
• SQL Full-Text Query syntax -> Keyword Query Language
• Search Scopes -> Result Sources

• Search Schema
• Managed Properties
Search Schema
• Query data according to their metadata
• Crawled and Managed Properties
• OOTB Managed Properties
• Author, Write (Modified Date), Path, FileSize, FileExtension, and more

• Create your own managed properties
•
•
•
•
•

Maps to your own site columns
Crawled properties created automatically with owa_ prefix
Managed at Search Schema at SA or Site Collection
Map Managed property with one or more Crawled properties
Recrawl after mapping properties
Result Sources
• Replaces scopes (now deprecated)
• Narrowing results
• One very good explanation what are Result
Sources “imagine that your search index is the
cube in the image on the slide, where you have
four result sources:
• Result source 1: search results can come from the entire
cube.
• Result source 2: search results can come only from the Bs.
• Result source 3: search results can come only from the Cs.
• Result source 4: search results can come only from the Ds.

• Query Transformation
• {searchTerms} path:http://intranet/sales
Keyword Query Language (1)
• A KQL query consists of one or more of the following elements:
• Free text-keywords—words or phrases
• Property restrictions

• Free text keywords
•
•
•
•

Word
Phrase
Operators and wildcard
Ex: conference / adria* / …

• Property restrictions
• <Property Name><Property Operator><Property Value>
Keyword Query Language (2)
• Use wildcard operator (*) to find more results
• i.e.: account* finds account, accounts, accountant, and accounting

• Use >, >=, <, <= operators to query results by date
• i.e.: Write>=“1/1/2013”

• Query by managed property like author or title:
•
•
•
•
•

i.e.: Author:”Ian Peterson”
i.e.: Title:”Europe 2014”
i.e.: author:Shakesp*
i.e.: title:"Advanced Search“
i.e.: title:"Advanced Sear*“ - wildcard operator (*) in the query, and it is supported only
at the end of the phrase

• i.e.: author:"John Smith" author:"Jane Smith“ = author:"John Smith" OR author:"Jane Smith“
• i.e.: author:"John Smith" filetype:docx = author:"John Smith“ AND filetype:docx
SHAREPOINT SEARCH CENTER
Developing SharePoint 2013 Search
solutions
• Server Side or Client Side query execution
• Scenarios in Demos: Searching Invoices
•
•
•
•
•

Narrow invoices by Result Source that search for certain Content Type
Search by term or property restriction
Async query execution
Select Properties and Sorting
Results limit and Paging
Server Side Managed OM Querying
• Executed directly on the server
• Used for full trust code
• Use KeywordQuery class with SearchExecutor class
• Use KQL for query text
• Iterate ResultsTable of type RelevantResults
SERVER-SIDE OM SEARCH
Managed Client Side Object Model (CSOM)
• SharePoint Managed Client Side Object Model classes
• Very similar classes and code like server side managed object
model
• Familiar programming from CSOM back in SP2010
• Use ExecuteQuery
• Select Properties
• Selecting Custom Managed Properties

• Sort List
MANAGED CLIENT-SIDE OBJECT MODEL
SEARCH
JavaScript CSOM Search
• JavaScript in SharePoint 2013 is derived from the .NET server
programming model, and the programming capabilities defined
here reflect those found in the original .NET server source.
• Reference .js files
• <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
• <script type="text/javascript" src="/_layouts/15/sp.js"></script>
• <script type="text/javascript" src="/_layouts/15/sp.search.js"></script>

• Use ExecuteQueryAsync(OnSucess,OnFail)
• Using Result Source
• Query Only Documents of certain Content Type
• Sorting

• Search Paging
CLIENT-SIDE SEARCH FROM JAVASCRIPT
SharePoint 2013 REST APIs
• SharePoint 2013 adds the ability to remotely interact with
SharePoint sites by using REST
• Construct a RESTful HTTP request, using the Open Data
Protocol (OData) standard
• Response is either Atom or JSON
Search REST APIs
• [site]/_api/[name of SP API]/[name of operation]?[parameters]
• http://intranet/_api/search/query?querytext='invoice'
Operation

Sample REST URL

Use a search Result
Source (i.e. a scope)

/_api/search/query?querytext='search term'&sourceid='B09A7990-05EA-4AF981EF-EDFAB16C4E31'

Specify a start row
(i.e. in paging)
Specify a number of
results to return
Specify particular
(managed) properties
to return

/_api/search/query?querytext='search term'&startrow=11
/_api/search/query?querytext='search term'&startrow=11&rowlimit=10
/_api/search/query?querytext='search
term'&selectproperties='Author,Path,Title,Url'
REST search calls
• Create HttpWebRequest
• Await for HttpWebResponse and the Load ResponseSretam
• Result parsing
• OAuth authentication for remote apps
REST
Why to use Search in solutions
• Site Collections consolidation
• Security Trimming (Custom Security Trimming)
• Fast query results
• High Availability and Load Balancing
Pros

Cons

•
•
•
•
•

• Time from data entry till crawl
• Additional space on disk

Search Features
Programmability possibilities
Fast results
Use refiners
Querying Index on disk, not in SQL
questions?
i

HTTP://DARKOMILEVSKI.INFO

@DARKOMILEVSKI
thank you.
SHAREPOINT AND PROJECT CONFERENCE ADRIATICS 2013
ZAGREB, NOVEMBER 27-28 2013

More Related Content

What's hot (20)

PPTX
Azure search
Raju Kumar
 
PPTX
SharePoint Saturday Perth 2013 - Overview of Search in SharePoint Server 201...
Sezai Komur
 
PDF
Azure search
azurekanio
 
PPTX
Introduction to Azure Search
Radoslav Gatev
 
PPTX
Using Azure Search to build Office 365 search driven solutions
Jose Carlos Rodriguez Aviles
 
PPTX
Search Queries Explained – A Deep Dive into Query Rules, Query Variables and ...
Mikael Svenson
 
PPTX
search driven intranets
Jeff Fried
 
PPTX
SharePoint Saturday DFW 2015 - Build a SharePoint 2013 Search Driven Application
Brian Culver
 
PPTX
2014 05-19 - getting started with office 365.release
Dan Usher
 
PPTX
Spsbe14 spsbe19
Rick Van Rousselt
 
PPTX
SharePoint 2013 REST APIs
Giuseppe Marchi
 
PPTX
SPCA2013 - Dude, Where’s my Search Scopes
NCCOMMS
 
PPTX
Azure Media Services & Azure Search
Emanuele Bartolesi
 
PPTX
Succeeding with Hybrid SharePoint (includes new Cloud SSA material)
Jeff Fried
 
PPTX
CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston
Kunaal Kapoor
 
PDF
Enterprise search-sizing-ha-and-migration-path
microsoftasap
 
PPTX
Developing a Custom FAST Search Server 2010 for SharePoint Solution - Share...
Sezai Komur
 
PPTX
Configuring and Managing Results Sources in SharePoint 2013
SurfRay
 
PPTX
SharePoint 2010 Enterprise Search
Agnes Molnar
 
PDF
Hard learned CSOM and REST tips
SPC Adriatics
 
Azure search
Raju Kumar
 
SharePoint Saturday Perth 2013 - Overview of Search in SharePoint Server 201...
Sezai Komur
 
Azure search
azurekanio
 
Introduction to Azure Search
Radoslav Gatev
 
Using Azure Search to build Office 365 search driven solutions
Jose Carlos Rodriguez Aviles
 
Search Queries Explained – A Deep Dive into Query Rules, Query Variables and ...
Mikael Svenson
 
search driven intranets
Jeff Fried
 
SharePoint Saturday DFW 2015 - Build a SharePoint 2013 Search Driven Application
Brian Culver
 
2014 05-19 - getting started with office 365.release
Dan Usher
 
Spsbe14 spsbe19
Rick Van Rousselt
 
SharePoint 2013 REST APIs
Giuseppe Marchi
 
SPCA2013 - Dude, Where’s my Search Scopes
NCCOMMS
 
Azure Media Services & Azure Search
Emanuele Bartolesi
 
Succeeding with Hybrid SharePoint (includes new Cloud SSA material)
Jeff Fried
 
CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston
Kunaal Kapoor
 
Enterprise search-sizing-ha-and-migration-path
microsoftasap
 
Developing a Custom FAST Search Server 2010 for SharePoint Solution - Share...
Sezai Komur
 
Configuring and Managing Results Sources in SharePoint 2013
SurfRay
 
SharePoint 2010 Enterprise Search
Agnes Molnar
 
Hard learned CSOM and REST tips
SPC Adriatics
 

Similar to Developing Search-driven application in SharePoint 2013 (20)

PPTX
Leveraging SharePoint 2013 Search and CSR
Sparkhound Inc.
 
PPTX
SharePoint 2013 Search - A Developer’s Perspective - SPSSV 2013
Ryan McIntyre
 
PPTX
SPSSTL - Building Search Driven Applications
Brian Caauwe
 
PPTX
Spsvb Developer Intro to SharePoint Search
Michael Oryszak
 
PPTX
Spsvb Developer Intro to SharePoint Search
Michael Oryszak
 
PPTX
Building Search Driven Applications
Brian Caauwe
 
PPTX
SharePoint 2013 Search
CT SPUG
 
PDF
Exploring the New Search in SharePoint 2013 - What can you do now?
Benjamin Niaulin
 
PPTX
Houston tech fest dev intro to sharepoint search
Michael Oryszak
 
PPTX
Getting the most ouf of SharePoint Search - Tulsa SharePoint Interest Group
Corey Roth
 
PDF
Spca2014 search workshop niaulin
NCCOMMS
 
PPTX
#SPSPhilly search topology & optimization
Mike Maadarani
 
PPTX
Real World Challenges in SharePoint 2013 Search
Agnes Molnar
 
PDF
SharePoint User Group Meeting- SharePoint 2013 Search
C/D/H Technology Consultants
 
PPTX
Optimizing SharePoint for Transactional Content Management
DocFluix, LLC
 
PPTX
Lets build a_search-based_application_in_share_point_2013_-_spsdc[2]
Matthew J. Bailey , MCT
 
PPTX
Introduction to the SharePoint Client Object Model and REST API
Rob Windsor
 
PPT
Iw411 migrating content by search from 2010 into 2013 - minified
Paul Hunt
 
PPTX
Customizing SharePoint 2013 search display templates
Tony Testa
 
PPTX
Search Driven Solutions
April Dunnam
 
Leveraging SharePoint 2013 Search and CSR
Sparkhound Inc.
 
SharePoint 2013 Search - A Developer’s Perspective - SPSSV 2013
Ryan McIntyre
 
SPSSTL - Building Search Driven Applications
Brian Caauwe
 
Spsvb Developer Intro to SharePoint Search
Michael Oryszak
 
Spsvb Developer Intro to SharePoint Search
Michael Oryszak
 
Building Search Driven Applications
Brian Caauwe
 
SharePoint 2013 Search
CT SPUG
 
Exploring the New Search in SharePoint 2013 - What can you do now?
Benjamin Niaulin
 
Houston tech fest dev intro to sharepoint search
Michael Oryszak
 
Getting the most ouf of SharePoint Search - Tulsa SharePoint Interest Group
Corey Roth
 
Spca2014 search workshop niaulin
NCCOMMS
 
#SPSPhilly search topology & optimization
Mike Maadarani
 
Real World Challenges in SharePoint 2013 Search
Agnes Molnar
 
SharePoint User Group Meeting- SharePoint 2013 Search
C/D/H Technology Consultants
 
Optimizing SharePoint for Transactional Content Management
DocFluix, LLC
 
Lets build a_search-based_application_in_share_point_2013_-_spsdc[2]
Matthew J. Bailey , MCT
 
Introduction to the SharePoint Client Object Model and REST API
Rob Windsor
 
Iw411 migrating content by search from 2010 into 2013 - minified
Paul Hunt
 
Customizing SharePoint 2013 search display templates
Tony Testa
 
Search Driven Solutions
April Dunnam
 
Ad

More from SPC Adriatics (20)

PPTX
How to secure your data in Office 365
SPC Adriatics
 
PPTX
Do you know, where your sensitive data is?
SPC Adriatics
 
PPTX
Securing Intellectual Property using Azure Rights Management Services
SPC Adriatics
 
PPTX
Creating Workflows in Project Online
SPC Adriatics
 
PPTX
Faster than a flash behind the scenes of patching SharePoint Online
SPC Adriatics
 
PPTX
Role based views in Project and Resource Center
SPC Adriatics
 
PPTX
OneDrive, TwoDrive, Whiterive, BlueDrive (hahaha)
SPC Adriatics
 
PPTX
SharePoint Governance and Compliance
SPC Adriatics
 
PDF
From analyses to successful Implementation
SPC Adriatics
 
PDF
The key to a successful Office 365 implementation is adoption
SPC Adriatics
 
PPTX
Office 365 Video
SPC Adriatics
 
PPTX
10 Steps to be Successful with Enterprise Search
SPC Adriatics
 
PPTX
How the Cloud Changes Business Solution Design and Delivery
SPC Adriatics
 
PDF
Scaling SharePoint 2016 Farms with MinRole & Other Tools
SPC Adriatics
 
PPTX
SharePoint 2013 Search Operations
SPC Adriatics
 
PDF
Office Online Server 2016 - a must for on-premises installation for SharePoin...
SPC Adriatics
 
PPTX
Custom Code-The Missing Piece of the SharePoint Governance Puzzle
SPC Adriatics
 
PPTX
SharePoint 2016 Hybrid Sites Inside Out
SPC Adriatics
 
PPTX
Microsoft BI demystified: SharePoint 2016 BI or for PowerBI v2?
SPC Adriatics
 
PPTX
What's New for the BI workload in SharePoint 2016 and SQL Server 2016
SPC Adriatics
 
How to secure your data in Office 365
SPC Adriatics
 
Do you know, where your sensitive data is?
SPC Adriatics
 
Securing Intellectual Property using Azure Rights Management Services
SPC Adriatics
 
Creating Workflows in Project Online
SPC Adriatics
 
Faster than a flash behind the scenes of patching SharePoint Online
SPC Adriatics
 
Role based views in Project and Resource Center
SPC Adriatics
 
OneDrive, TwoDrive, Whiterive, BlueDrive (hahaha)
SPC Adriatics
 
SharePoint Governance and Compliance
SPC Adriatics
 
From analyses to successful Implementation
SPC Adriatics
 
The key to a successful Office 365 implementation is adoption
SPC Adriatics
 
Office 365 Video
SPC Adriatics
 
10 Steps to be Successful with Enterprise Search
SPC Adriatics
 
How the Cloud Changes Business Solution Design and Delivery
SPC Adriatics
 
Scaling SharePoint 2016 Farms with MinRole & Other Tools
SPC Adriatics
 
SharePoint 2013 Search Operations
SPC Adriatics
 
Office Online Server 2016 - a must for on-premises installation for SharePoin...
SPC Adriatics
 
Custom Code-The Missing Piece of the SharePoint Governance Puzzle
SPC Adriatics
 
SharePoint 2016 Hybrid Sites Inside Out
SPC Adriatics
 
Microsoft BI demystified: SharePoint 2016 BI or for PowerBI v2?
SPC Adriatics
 
What's New for the BI workload in SharePoint 2016 and SQL Server 2016
SPC Adriatics
 
Ad

Recently uploaded (20)

PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Python basic programing language for automation
DanialHabibi2
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Python basic programing language for automation
DanialHabibi2
 

Developing Search-driven application in SharePoint 2013

  • 1. SharePoint 2013 Search Based Solutions Many MILEVSKI, NEXTSENSE ways to query SharePoint Search DARKO SHAREPOINT AND PROJECT CONFERENCE ADRIATICS 2013 ZAGREB, NOVEMBER 27-28 2013
  • 4. Agenda • SharePoint 2013 Enterprise Search Overview • Keyword Query Language Overview • Developing Server Side Search • Managed Server Side Object Model • Demo • Developing Client Side Search • • • • • • Managed Client Side Object Model Demo JavaScript Client Side Object Model Demo REST APIs Demo
  • 5. What about search? • Are you using Bing or Google? • If you are a Dev, how many times have you tried to develop without using a search engine? • Was it good experience? • Are using Search in SharePoint? • Did you know that you can customize and develop over the SharePoint Search? • Do you know about rich Search functionalities like Managed Properties, Result Sources, Query Rules, Keyword Query Language, etc., ….
  • 6. SharePoint 2013 Enterprise Search • Search in 2010 + FAST Search Server • Single Search • Server vs. Foundation • No more Express edition • Deprecated Features • SQL Full-Text Query syntax -> Keyword Query Language • Search Scopes -> Result Sources • Search Schema • Managed Properties
  • 7. Search Schema • Query data according to their metadata • Crawled and Managed Properties • OOTB Managed Properties • Author, Write (Modified Date), Path, FileSize, FileExtension, and more • Create your own managed properties • • • • • Maps to your own site columns Crawled properties created automatically with owa_ prefix Managed at Search Schema at SA or Site Collection Map Managed property with one or more Crawled properties Recrawl after mapping properties
  • 8. Result Sources • Replaces scopes (now deprecated) • Narrowing results • One very good explanation what are Result Sources “imagine that your search index is the cube in the image on the slide, where you have four result sources: • Result source 1: search results can come from the entire cube. • Result source 2: search results can come only from the Bs. • Result source 3: search results can come only from the Cs. • Result source 4: search results can come only from the Ds. • Query Transformation • {searchTerms} path:http://intranet/sales
  • 9. Keyword Query Language (1) • A KQL query consists of one or more of the following elements: • Free text-keywords—words or phrases • Property restrictions • Free text keywords • • • • Word Phrase Operators and wildcard Ex: conference / adria* / … • Property restrictions • <Property Name><Property Operator><Property Value>
  • 10. Keyword Query Language (2) • Use wildcard operator (*) to find more results • i.e.: account* finds account, accounts, accountant, and accounting • Use >, >=, <, <= operators to query results by date • i.e.: Write>=“1/1/2013” • Query by managed property like author or title: • • • • • i.e.: Author:”Ian Peterson” i.e.: Title:”Europe 2014” i.e.: author:Shakesp* i.e.: title:"Advanced Search“ i.e.: title:"Advanced Sear*“ - wildcard operator (*) in the query, and it is supported only at the end of the phrase • i.e.: author:"John Smith" author:"Jane Smith“ = author:"John Smith" OR author:"Jane Smith“ • i.e.: author:"John Smith" filetype:docx = author:"John Smith“ AND filetype:docx
  • 12. Developing SharePoint 2013 Search solutions • Server Side or Client Side query execution • Scenarios in Demos: Searching Invoices • • • • • Narrow invoices by Result Source that search for certain Content Type Search by term or property restriction Async query execution Select Properties and Sorting Results limit and Paging
  • 13. Server Side Managed OM Querying • Executed directly on the server • Used for full trust code • Use KeywordQuery class with SearchExecutor class • Use KQL for query text • Iterate ResultsTable of type RelevantResults
  • 15. Managed Client Side Object Model (CSOM) • SharePoint Managed Client Side Object Model classes • Very similar classes and code like server side managed object model • Familiar programming from CSOM back in SP2010 • Use ExecuteQuery • Select Properties • Selecting Custom Managed Properties • Sort List
  • 17. JavaScript CSOM Search • JavaScript in SharePoint 2013 is derived from the .NET server programming model, and the programming capabilities defined here reflect those found in the original .NET server source. • Reference .js files • <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script> • <script type="text/javascript" src="/_layouts/15/sp.js"></script> • <script type="text/javascript" src="/_layouts/15/sp.search.js"></script> • Use ExecuteQueryAsync(OnSucess,OnFail) • Using Result Source • Query Only Documents of certain Content Type • Sorting • Search Paging
  • 19. SharePoint 2013 REST APIs • SharePoint 2013 adds the ability to remotely interact with SharePoint sites by using REST • Construct a RESTful HTTP request, using the Open Data Protocol (OData) standard • Response is either Atom or JSON
  • 20. Search REST APIs • [site]/_api/[name of SP API]/[name of operation]?[parameters] • http://intranet/_api/search/query?querytext='invoice' Operation Sample REST URL Use a search Result Source (i.e. a scope) /_api/search/query?querytext='search term'&sourceid='B09A7990-05EA-4AF981EF-EDFAB16C4E31' Specify a start row (i.e. in paging) Specify a number of results to return Specify particular (managed) properties to return /_api/search/query?querytext='search term'&startrow=11 /_api/search/query?querytext='search term'&startrow=11&rowlimit=10 /_api/search/query?querytext='search term'&selectproperties='Author,Path,Title,Url'
  • 21. REST search calls • Create HttpWebRequest • Await for HttpWebResponse and the Load ResponseSretam • Result parsing • OAuth authentication for remote apps
  • 22. REST
  • 23. Why to use Search in solutions • Site Collections consolidation • Security Trimming (Custom Security Trimming) • Fast query results • High Availability and Load Balancing Pros Cons • • • • • • Time from data entry till crawl • Additional space on disk Search Features Programmability possibilities Fast results Use refiners Querying Index on disk, not in SQL
  • 25. thank you. SHAREPOINT AND PROJECT CONFERENCE ADRIATICS 2013 ZAGREB, NOVEMBER 27-28 2013