Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learning Search-driven Application Development with SharePoint 2013
Learning Search-driven Application Development with SharePoint 2013

Learning Search-driven Application Development with SharePoint 2013: The search engine in SharePoint 2013 is a refreshed version and this book will show you how to make the most of it with a range of methodologies for developing search-driven applications. JavaScript experience required.

Arrow left icon
Profile Icon Johnny Tordgeman
Arrow right icon
Mex$180 Mex$721.99
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1 (1 Ratings)
eBook Jul 2013 106 pages 1st Edition
eBook
Mex$180 Mex$721.99
Paperback
Mex$902.99
Subscription
Free Trial
Arrow left icon
Profile Icon Johnny Tordgeman
Arrow right icon
Mex$180 Mex$721.99
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1 (1 Ratings)
eBook Jul 2013 106 pages 1st Edition
eBook
Mex$180 Mex$721.99
Paperback
Mex$902.99
Subscription
Free Trial
eBook
Mex$180 Mex$721.99
Paperback
Mex$902.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Learning Search-driven Application Development with SharePoint 2013

Chapter 2. Using the Out of the Box Search Components

Now that we know what's under the hood, let's get started with what we can do with it! In the previous chapter, we briefly mentioned the new search settings for sites and site collections. This chapter will dive deep into these settings. We will discuss the administrative side of SharePoint Search where we can define query rules and result sources and demonstrate the use of out of the box search components in a search-driven application.

In this chapter we will cover the following topics:

  • Getting acquainted with result sources

  • Learning query rules

  • Using the content search web part

  • Building a simple search-driven app

Getting acquainted with result sources


The best way to explain what a result source is, is by using a real life example.

Say you need to buy some milk. You know that you need to go to the supermarket and look for milk in the dairy department. You aren't going to be looking for milk in the tools department or even other areas of the store (such as the fruits and vegetables departments); you limit yourself to just the dairy department.

A result source acts the same. It allows you to restrict search queries to a specific subset of content from the search index by defining a set of rules that must be met by the content in order to show up as a result.

If the result source sounds familiar to you, it is because you have already encountered it before. Take a look at the following screenshot taken from the default SharePoint 2013 search center:

Below the search box we have four search verticals. These verticals are actually using result sources. Think about the Videos vertical. It takes your search...

Learning query rules


Query rules are a hot new feature of SharePoint 2013 search. In essence, query rules are the infrastructure for query pipeline extensibility. Using query rules, we can create conditional rules that will intelligently respond to what the user is trying to search for.

Let's assume we have a knowledge center site that tags all of its assets (videos, images, documents, and so on) using the following taxonomy dictionary as shown in the following screenshot:

If a user searches for one of these terms, we should display a result on top of the other results, pointing the user to the knowledge center. A result that will always appear on top of other results is called a promoted result.

Promoted results are very similar to SharePoint 2010's best bets, but with one key difference: promoted results can react to taxonomy terms as well as matched keywords.

A promoted result, for the knowledge center we mentioned previously, will look as shown in the following screenshot:

Now, let's assume...

Using the content search web part


When working with out of the box SharePoint search web parts, SharePoint 2013 simplifies the process by cutting down the number of web parts from 17 in SharePoint 2010 to just four.

In addition to the core search web parts, there are a number of new web parts that are powered by search. The most important of the bunch, without a doubt, is the content search web part.

The content search web part is the evolution of the content query web part from SharePoint 2007/2010. It allows us to display content straight from the search index, based on a query. For example, we can use the content search web part to display the latest document added on a specific site collection (that is, the knowledge center) to any other site collection in our farm using a simple query!

The content search web part infrastructure relies on two factors:

  • A query built using the query builder

  • A display template to render the results

We will discuss display the template in detail in Chapter 4,...

Building a simple search-driven application


With all the theory we just discussed, it's time to put the wheels in motion. With the knowledge we gained so far in this chapter, we can build a simple search-driven application that will use query rules to react to users' intentions.

First, let's get our infrastructure in order and create two new sites as follows:

  • A team site called Video Games Center that will host the content for our search-driven application

  • A search center site that we will use to create the search logic on

Adding content

In order to show search results, we first need something to search for. Let's follow the ensuing steps to pour some content into our newly added team site:

  1. Navigate to the newly added team site and add the following apps:

    • A picture library named VideoGamesImages

    • A document library named VideoGamesDocuments

    Once both the libraries have been created, rename them to Video Games Center Images and Video Games Center Documents respectively.

  2. From the downloadable content...

Summary


This chapter mixed theory with practice. We started off by discussing result sources, the heart of search-driven applications. We saw examples on what result sources are, what they are used for, and got introduced to search verticals.

Query rules, the main concept of the chapter, was introduced next. Query rules are a new addition to SharePoint, and they allow us to respond intelligently to user queries. When building a query rule, you have to remember three questions: where is the user going to use this query rule (which search vertical)?, what makes this query rule fire?, and what does the query rule do once fired?

Once we understood the concept of query rules, we moved on and got introduced to the new king of search-related web parts: the content search web part.

The chapter ended with a step-by-step tutorial on creating a small and simple search-driven application based on the subjects discussed in this chapter.

While this search-driven application may seem simple, remember that...

Left arrow icon Right arrow icon

Key benefits

  • Create search-driven applications using the new SharePoint 2013 enterprise search engine
  • Learn how to respond intelligently to user's search queries using Query Rules
  • Filled with helpful tips, diagrams, and practical examples to make your organization's search experience smarter

Description

SharePoint 2013 feels like a of fresh air, offering many new features and changes over older versions. Among these new features is a completely revamped search engine. "Learning Search-driven Application Development with SharePoint 2013" is a quick-start guide to creating search-driven applications using the new and exciting features that have revolutionized the SharePoint enterprise search experience. "Learning Search-driven Application Development with SharePoint 2013" is a fast-paced, practical, hands-on guide to the world of enterprise search in SharePoint 2013. With step-by-step tutorials and real-world examples, this book will give you a head start creating fresh and exciting search-driven applications using SharePoint 2013's new search engine. "Learning Search-driven Application Development with SharePoint 2013" is an accelerated way to create search-driven applications for SharePoint 2013. By covering the basics first and gradually covering all search related topics, this book will be your guide through the world of SharePoint's enterprise search. Furthermore, you will learn how to use the powerful feature of Query Rules to create smart conditions that help respond to user's search queries intelligently. We will also discuss how to style search results and make them stand out, how to index external content so it will be searchable using SharePoint's powerful search engine, and how to use the new client side search APIs, which will allow us to take advantage of search in Apps, the new development model for SharePoint 2013. After reading Learning Search-driven Application Development with SharePoint 2013, you will understand what it takes to create applications that use search as a content provider. Using applications that are based on real world examples and step-by-step tutorials, you'll get hands-on experience in developing search driven applications.

Who is this book for?

This book is written for SharePoint and JavaScript developers who want to get started with SharePoint search and create search-driven applications. The book assumes working knowledge with previous versions of SharePoint and some experience with JavaScript and client side development.

What you will learn

  • Getting acquainted with the new features of SharePoint 2013 search and how its architecture is designed
  • Using query rules to define smart search conditions
  • Building search verticals
  • Using the new Content Search Web Part
  • Using SharePoint 2013 s client facing APIs and learn how to use them in a SharePoint hosted app
  • Styling results using Result Types and Display Templates
  • Learning how to use the business connectivity services application
  • Creating a BCS search indexer connector to index content that is external to SharePoint

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 11, 2013
Length: 106 pages
Edition : 1st
Language : English
ISBN-13 : 9781782171010
Category :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 11, 2013
Length: 106 pages
Edition : 1st
Language : English
ISBN-13 : 9781782171010
Category :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Mex$ 3,159.97
SharePoint 2013 WCM Advanced Cookbook
Mex$1251.99
Microsoft SharePoint 2013 Disaster Recovery Guide
Mex$1004.99
Learning Search-driven Application Development with SharePoint 2013
Mex$902.99
Total Mex$ 3,159.97 Stars icon

Table of Contents

5 Chapters
Getting Started with SharePoint 2013 Search Chevron down icon Chevron up icon
Using the Out of the Box Search Components Chevron down icon Chevron up icon
Using the New CSOM and RESTful APIs Chevron down icon Chevron up icon
Customizing the Look Chevron down icon Chevron up icon
Extending Beyond SharePoint Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
(1 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 100%
JuanBerenguer Mar 18, 2014
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
At nearly $40 one expects a thorough examination of a given topic within a technology book of this nature. At a measly 87 pages of content, this "book" whisks over topics and gives you a very high level idea of the components that make up search in SharePoint 2013. The content within this book is more akin to what one would expect from a free E-book or a whitepaper. Spend 15 minutes searching the internet on this topic and you not only have a better grasp of Search Driven Application Development, but you'll have an extra $40 sitting in your pocket.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.

Modal Close icon
Modal Close icon