Search in SharePoint (2024)

  • Article

Understand the extensibility building blocks in Search in SharePoint and how you can use these building blocks to suit your use cases.Search in SharePoint enables users to find relevant information more quickly and easily than ever before and makes it easy for Search administrators to customize the search experience. It also provides several API sets for more advanced customizations and solutions.

See the following articles for a good introduction to general SharePoint development concepts; you may find it helpful to review these before proceeding:

  • Set up a general development environment for SharePoint

  • Choose the right API set in SharePoint

  • SharePoint Add-ins compared with SharePoint solutions

  • Deciding between SharePoint Add-ins and SharePoint solutions

Search architecture overview

Search in SharePoint includes a wide variety of improvements and new features. With this version, Search in SharePoint is re-architected to a single enterprise search platform. The search architecture consists of the following areas:

  • Crawl and content processing

  • Index

  • Query processing

  • Search administration

  • Analytics

These areas consist of components and databases that work cohesively to perform the search operation. Figure 1 provides an overall view of the different areas of search architecture, and the components and databases within that work cohesively to perform the search operation.

Figure 1. Search component interaction

Search in SharePoint (1)

For a more detailed view, see Technical Diagrams -- Search and Overview of search in SharePoint.

Crawl and content processing

The crawl and content processing architecture consists of the following:

Crawl component

Crawls content sources to collect crawled properties and metadata from crawled items and sends this information to the content processing component.

Crawl database

Contains information about crawled items, such as last crawl time, the last crawl ID, and the type of update during the last crawl.

Content processing component

Crawls content sources to collect crawled properties and metadata from crawled items and sends this information to the index component.

Index

The index component receives the processed items from the content processing component and writes them to the search index. This component also handles incoming queries, retrieves information from the search index, and sends back the result set to the query processing component.

Query processing

The query processing component analyzes and processes search queries and results. The processed query is then submitted to the index component, which returns a set of search results for the query.

Search administration

Search administration is composed of the search administration component and its corresponding database.

Search administration component

Runs the system processes for search, and adds and initializes new instances of search components.

Search administration database

Stores search configuration data.

Analytics

The analytics architecture consists of the analytics processing component, analytics reporting database, and link database.

Analytics processing component

Performs search analytics and usage analytics.

Link database

Stores information extracted by the content processing component and search click information.

Analytics reporting database

Stores the results of usage analytics.

Event store

Stores usage events that are captured on the front-end.

Search extensibility points

The Search in SharePoint architecture provides several extensibility points to support customization scenarios. In this section, we'll describe these points and show you where you can find more information about developing for these scenarios.

Connector framework

The crawl component crawls content by invoking connectors or protocol handlers that interact with content sources to retrieve data. Search in SharePoint includes a connector framework that you can use to customize and build connectors to crawl new content sources. For detailed information about the connector framework architecture and how to extend it, see Search connector framework in SharePoint.

Custom content processing

Within the content processing component, you can use the Content Enrichment web service callout to modify the managed properties of crawled items before they are added to the search index. This web service callout calls out to any external content enrichment web service that you create. For more information, see Custom content processing with the Content Enrichment web service callout. For a step-by-step implementation of a content enrichment web service, see How to: Use the Content Enrichment web service callout for SharePoint Server. The blog post Customize the SharePoint search experience with a Content Enrichment web service is also a good resource

Query APIs

Search in SharePoint provides several query APIs, giving you lots of ways to access search results, so that you can return search results in a variety of custom solution types.

Table 1 shows the APIs that you can use to program Search in SharePoint and where to find them.

Table 1. Search APIs

API nameClass library or schema and path
.NET client object model (CSOM)
Microsoft.SharePoint.Client.Search.dll
%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\ISAPI
Silverlight CSOM
Microsoft.SharePoint.Client.Search.Silverlight.dll
%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\LAYOUTS\ClientBin
JavaScript CSOM
SP.search.js
%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\LAYOUTS
Representational State Transfer (REST) service endpoints
http://server/_api/search/query
http://server/_api/search/suggest
Server object model
Microsoft.Office.Server.Search.dll
%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\ISAPI

For more information, see Using the SharePoint search Query APIs.

Analytics

To help identify and surface the content that users consider to be the most useful and relevant, the analytics processing component analyzes both the content itself, and also the way that users interact with it. These analyses are done by timer jobs that are responsible for performing analysis lifecycle tasks such as starting, stopping, pausing, and resuming an analysis job when requested. You can manipulate these timer jobs through the Microsoft.Office.Server.Search.Analytics namespace. For in-depth information about analytics in SharePoint, see Overview of analytics processing in SharePoint.

Custom ranking models

Search results can be ordered in various ways, one of which is by rank score. Rank scores are calculated by the search engine using ranking models. SharePoint provides fourteen ranking models by default. However, if you are not satisfied with the way your search results are ordered, you can use a custom ranking model. To learn more about the process of creating a custom ranking model and tuning it, see Customizing ranking models to improve relevance in SharePoint.

Custom security trimming

Search in SharePoint performs security trimming of search results that are based on the identity of the user submitting the query, at query time, by using security information obtained from the crawl component. However, in some cases, you may need to implement custom security trimming. SharePoint provides two interfaces to accomplish this task: ISecurityTrimmerPre and ISecurityTrimmerPost .

The pre-trimmer interface ( ISecurityTrimmerPre) carries out pre-query evaluation, where the search query is rewritten to add security information before the search query is matched to the search index. In contrast, the post-trimmer interface ( ISecurityTrimmerPost) carries out post-query evaluation, where the search results are pruned before they are returned to the user. For more information about the two interfaces, see Custom security trimming for Search in SharePoint. For step-by-step information on how to implement a security trimmer interface, see How to: Use a custom security trimmer for SharePoint Server search results.

Content Search web part

The Content Search web part is a web part that can display dynamic content that was previously crawled and added to the search index. Each instance of the web part is associated with a search query and shows the results for that particular search query. When users browse to a page that contains a Content Search web part, a search query is automatically issued, and the corresponding search results are returned from the search index. You can use the Content Search web part whenever you want to display content that is populated by automatically generated search queries. In some cases, you may want to extend the Content Search web part, which is exposed through the Microsoft.Office.Server.Search.WebControls namespace as ContentBySearchWebPart . To learn about how to extend the ContentBySearchWebPart so that the web part understands custom properties, see User segmentation in SharePoint.

Search-driven mobile apps using the Navigation and Event Logging REST interfaces

SharePoint provides two new REST interfaces: Navigation and Event Logging. You can use them to create search-driven mobile apps for mobile devices, such as phones and tablets, that run on operating systems other than Windows. This feature lets you display the product catalog on a mobile device in an alternate way, instead of using a mobile channel. See How to: Build search-driven mobile apps with the Navigation and Event Logging REST interfaces for a detailed example of how to create such an app.

In this section

  • What's new in SharePoint search for developers

  • Searching new content with SharePoint Search

  • Configure search in SharePoint

  • Building search queries in SharePoint

  • SharePoint Search REST API overview

  • Customizing search results in SharePoint

  • Sorting search results in SharePoint

  • Customizing ranking models to improve relevance in SharePoint

  • Custom security trimming for Search in SharePoint

  • Exporting and importing search configuration settings in SharePoint

See also

  • Technical Diagrams -- Search

  • Add SharePoint capabilities

I'm well-versed in SharePoint's Search capabilities, having dived deep into its architecture, extensibility, and various components. Let me break down the concepts and information presented in the article.

Search Architecture in SharePoint:

  • Crawl and Content Processing: This aspect involves the Crawl Component, responsible for fetching metadata and properties, and the Crawl Database, which stores information about crawled items. The Content Processing Component collects metadata and properties before sending them to the Index Component.
  • Index Component: This part receives processed items from content processing, writes them into the search index, and handles incoming queries and result retrieval.
  • Query Processing: Here, search queries and results are analyzed and processed before being submitted to the Index Component.
  • Search Administration: This involves system processes for search, initializing search components, and storing search configuration data.
  • Analytics: The analytics processing component, analytics reporting database, and link database together handle search analytics, usage analytics, and storage of usage events captured on the front-end.

Search Extensibility Points:

  • Connector Framework: This framework customizes and builds connectors to crawl new content sources.
  • Custom Content Processing: Utilizes the Content Enrichment web service callout to modify managed properties of crawled items before indexing.
  • Query APIs: Provides multiple query APIs (like .NET client object model, JavaScript CSOM, REST service endpoints) for accessing search results in various solution types.
  • Analytics Manipulation: The analytics processing component and timer jobs help in understanding user interactions and content relevance.
  • Custom Ranking Models: Enables customization of how search results are ordered using ranking models.
  • Custom Security Trimming: Allows for security trimming of search results based on user identity, using pre- and post-trimmer interfaces.
  • Content Search Web Part: Displays dynamically crawled content based on a specific search query.

Search-Driven Mobile Apps:

  • Navigation and Event Logging REST Interfaces: These interfaces assist in creating search-driven mobile apps for non-Windows devices, facilitating alternate ways to display content, like product catalogs.

The provided concepts cover the foundational elements, extensibility options, APIs for querying, analytics, security trimming, and even extending search functionalities to mobile applications. This comprehensive understanding empowers developers to optimize and customize SharePoint Search for diverse needs.

Search in SharePoint (2024)

FAQs

Is there a search function on SharePoint? ›

You can use the Search box that is on each page of a SharePoint site, the Search Center site, or create a detailed query by using the Advanced Search page. You can look for content by searching for keywords, a specific phrase enlosed in quotation marks, or by values that are assigned to properties.

How do I search for an item in SharePoint? ›

Use the Search box as a quick way to look up particular items in a list. The Search box is in the title bar at the top of the SharePoint or Lists app. It lets you search for text in any list item in the currently open list.

Why can't I search in SharePoint? ›

Select Site Settings. Under Search, select Search and offline availability. Make sure that Allow this site to appear in Search results is set to Yes. After the setting is set to Yes, the site should be indexed during the next scheduled crawl.

What is the shortcut for search in SharePoint? ›

Press Ctrl+F, and then type your search words. SharePoint in Microsoft 365 is a web-based application, so the keyboard shortcuts and navigation may be different from those in the on-premises version.

How do I set up search in SharePoint? ›

Show content on a site in search results
  1. On the site, select Settings. , and then select Site settings. ...
  2. Under Search, click Search and offline availability.
  3. In the Indexing Site Content section, under Allow this site to appear in Search results, select Yes to allow the content of the site to appear in search results.
May 22, 2024

Does SharePoint have an advanced search? ›

SharePoint search comes with a ton of additional features that allow you to enhance the quality of your search query and garner significantly better search results.

How to make searching in SharePoint easier? ›

Option 1: Create Bookmarks

The first way to improve search results in SharePoint Online is to promote specific results via the Bookmarks feature in the Search & Intelligence Center. Think of a Bookmark as a promoted search result based on specific keywords.

How do I search within a folder in SharePoint online? ›

If you want to search individual folders:

Right click on your folder you want to search and select search.

What is SharePoint search center? ›

The Search Center is a site or site collection that has a starting page where users enter search queries and a search results page where users can drill into and refine search results, or run a new query. SharePoint offers two types of Search Centers: the Basic Search Center and the Enterprise Search Center.

How do I add a search filter in SharePoint online? ›

Create SharePoint site level filters

Look for the Microsoft Search section, and then select Configure search settings. In the navigation pane, go to Custom experience under Microsoft Search and then select Verticals. Select your preferred vertical to create the filter and click Edit.

How do I search all sites in SharePoint? ›

Find All SharePoint Sites I'm a Member Of
  1. In the search box at the top enter contentclass:STS_Site.
  2. A list of all sites you have access to is displayed. You may have to click on "Search the whole organization for contentclass:STS_Site" link if no results are found.
Nov 8, 2023

Where is SharePoint search index? ›

According to some articles, the search index files are stored at C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\ by default.

Where is the search bar in SharePoint? ›

You may also see there is also no ribbon shown in SharePoint online library. However, when we sign-in SharePoint online document library, we will see "Search" bar on the top.

What is fast search in SharePoint? ›

FAST Search server is another installation on top of SharePoint 2010 that enhances the enterprise search capabilities by employing new tools and technologies.

What shortcut lets you search? ›

Ctrl + F (or F3) - Start search. Ctrl + L - Focus on the address bar. Ctrl + Mouse scroll wheel - Change view file and folder. Ctrl + N - Open new window.

Does SharePoint use Boolean search? ›

Use Boolean OR and AND operators Similar to Google and Bing, you can use OR and AND Boolean operators. E.g. "sharepoint AND search". Note: OR and AND must be capitalized, however, the case is irrelevant for actual search terms.

How do I search by file name in SharePoint? ›

How to search for a file in SharePoint Online? In order to search for a file in SharePoint Online cloud file picker, in the search box from the right corner of the file picker start typing part of the file name you want to find. As you type, the results for your search will be shown.

Top Articles
10 students excel under the Absa Tanzania leaders in the making graduate engagement programme - Daily News
What Is a Clause? | Contractbook
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Camera instructions (NEW)
Gore Videos Uncensored
Craigslist Kennewick Pasco Richland
Mylaheychart Login
The Best Classes in WoW War Within - Best Class in 11.0.2 | Dving Guides
craigslist: south coast jobs, apartments, for sale, services, community, and events
Walgreens Alma School And Dynamite
Heska Ulite
Tamilblasters 2023
Alaska Bücher in der richtigen Reihenfolge
What is a basic financial statement?
Jscc Jweb
Evangeline Downs Racetrack Entries
Cbs Trade Value Chart Fantasy Football
Who called you from 6466062860 (+16466062860) ?
Apus.edu Login
Highland Park, Los Angeles, Neighborhood Guide
Roll Out Gutter Extensions Lowe's
Delaware Skip The Games
Hermitcraft Texture Pack
Wbiw Weather Watchers
Doki The Banker
8005607994
Watch Your Lie in April English Sub/Dub online Free on HiAnime.to
Page 2383 – Christianity Today
Kirk Franklin Mother Debra Jones Age
Wolfwalkers 123Movies
Mjc Financial Aid Phone Number
Orange Park Dog Racing Results
Past Weather by Zip Code - Data Table
Google Flights To Orlando
Mastering Serpentine Belt Replacement: A Step-by-Step Guide | The Motor Guy
Nurtsug
Blush Bootcamp Olathe
Syracuse Jr High Home Page
O'reilly Auto Parts Ozark Distribution Center Stockton Photos
Shaman's Path Puzzle
Royal Caribbean Luggage Tags Pending
School Tool / School Tool Parent Portal
Top-ranked Wisconsin beats Marquette in front of record volleyball crowd at Fiserv Forum. What we learned.
Myfxbook Historical Data
Mandy Rose - WWE News, Rumors, & Updates
Unifi Vlan Only Network
What is 'Breaking Bad' star Aaron Paul's Net Worth?
Egg Inc Wiki
Oak Hill, Blue Owl Lead Record Finastra Private Credit Loan
10 Bedroom Airbnb Kissimmee Fl
Solving Quadratics All Methods Worksheet Answers
View From My Seat Madison Square Garden
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 6070

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.