Use Windows PowerShell cmdlets to administer and configure search in SharePoint 2013
Published: July 16, 2012
Summary: Learn about the Windows PowerShell cmdlets that you can use to administrate and configure Search for SharePoint 2013.
Applies to: SharePoint Server 2013
Search is composed of several components, all of which provide specific functionality that is required for Search to operate. The following tables show the Windows PowerShell cmdlets that you can use to configure these Search components and manage Search operations for a SharePoint farm.
Index of Windows PowerShell cmdlets for SharePoint 2013 includes a complete list of all cmdlets in SharePoint 2013.
Administration
| Cmdlet name | Description |
|---|---|
|
Retrieves diagnostics information for the search components. |
|
|
Creates a new admin component for the given topology and search service instance. |
Crawling
| Cmdlet name | Description |
|---|---|
|
Returns a crawl content source. |
|
|
Returns a CustomConnector object type. |
|
|
Returns a crawl store. |
|
|
Returns the file types to be included in the content index. |
|
|
Returns a crawl mapping for the search application. |
|
|
Accesses crawl rules. |
|
|
Adds a query component to a query topology. |
|
|
Creates a new crawl content source for a shared search application. |
|
|
Registers a protocol for custom crawling. |
|
|
Creates a crawl database which can be added to a search service application. |
|
|
Adds an extension rule to a shared search application. |
|
|
Creates a crawl mapping rule for a shared search application. |
|
|
Creates a new crawl rule. |
|
|
Deletes a specified crawl content source from a search application. |
|
|
Removes a CustomConnector object. |
|
|
Sets properties of a crawl database for a search service application. |
|
|
Removes a file name extension from the list of files that can be crawled. |
|
|
Deletes a crawl mapping. |
|
|
Deletes a crawl rule. |
|
|
Sets the properties of a crawl content source for a shared search application. |
|
|
Sets properties of a crawl database for a search service application. |
|
|
Sets properties for a crawl rule. |
|
|
Grants users permission to view the crawl log information. |
|
|
Retrieves the list of users which have permission to access the crawl log information. |
|
|
Removes permission to view crawl log information. |
|
|
Configures the Microsoft SharePoint 2013 Indexing Connector for Documentum. |
Service Application
| Cmdlet name | Description |
|---|---|
|
Returns the search service for a farm. |
|
|
Returns the search service application for a farm. |
|
|
Returns the search service application proxy. |
|
|
Returns the search service instance for a farm. |
|
|
Adds a search service application to a farm. |
|
|
Adds a new search application proxy to a farm.. |
|
|
Deletes a search service application. |
|
|
Deletes a search service application proxy. |
|
|
Restores a third-party backup of a search application. |
|
|
Resumes a search service application that was suspended. |
|
|
Sets the properties of a search service for a farm. |
|
|
Sets the properties of a search service application for a farm. |
|
|
Sets properties of a search service application proxy. |
|
|
|
|
|
Starts an instance of a search service. |
|
|
Stops an instance of a search manager service. |
|
|
Suspends a search service application, pausing all crawls and search operations, to perform a task such as system maintenance. |
|
|
Upgrades a search service application. |
|
|
Takes a backup of the search index to a specified backup location. |
|
|
Upgrades search settings for a particular site collection. |
|
|
Restores the search index from the specified backup files. |
|
|
Cleans up search settings for a particular site collection, subscription, or search application. |
|
|
Returns the search object owner. |
|
|
Suspends a search service application, pausing all crawls and search operations, to perform a task such as system maintenance. |
|
|
Sets the properties of a search service instance. |
Querying
| Cmdlet name | Description |
|---|---|
|
Returns the search manager service. |
|
|
Returns the service manager service instance. |
|
|
Returns the search manager service proxy. |
|
|
Returns an authoritative page. |
|
|
Returns a demoted site rule. |
|
|
Returns a keyword term. |
|
|
Returns a query results scope. |
|
|
Returns a shared scope rule. |
|
|
Returns a list of queries. |
|
|
Returns a ranking model. |
|
|
Returns a custom security trimmer. |
|
|
Adds an authoritative page to a shared search application. |
|
|
Adds a demoted site rule to a shared search application. |
|
|
Adds a keyword term to a shared search application. |
|
|
Adds a query results scope to a shared search application. |
|
|
Adds a shared scope rule to a query scope. |
|
|
Adds a ranking model to a shared search application. |
|
|
Adds a custom security trimmer to a shared search application. |
|
|
Deletes an authoritative page. |
|
|
Deletes a demoted site rule. |
|
|
Deletes a query keyword. |
|
|
Deletes a query scope. |
|
|
Deletes query results scope rules. |
|
|
Deletes a ranking model. |
|
|
Deletes a custom security trimmer. |
|
|
Sets the properties of an authoritative page for a shared search application. |
|
|
Sets the properties of a keyword term for a shared search application. |
|
|
Sets the properties of a query results scope for a shared search application. |
|
|
Sets the properties of a shared scope rule for a query scope. |
|
|
Sets the properties of a ranking model for a shared search application. |
|
|
Starts an instance of a search manager service. |
|
|
Stops an instance of a search manager service. |
|
|
Sets properties of a result item type. |
|
|
Sets properties of a result item type. |
|
|
Sets the operation status of the Query Spelling Corrections (QSC) component. |
|
|
Creates a new result item type. |
|
|
Creates a new Result Type. |
|
|
Deploys the dictionary to the thesaurus component in the query processing flow. |
|
|
Returns result item types. |
|
|
Returns the object that exposes the Query Spelling Correction (QSC) configuration. |
Metadata
| Cmdlet name | Description |
|---|---|
|
Returns a crawled property category. |
|
|
Returns a crawled property. |
|
|
Returns a managed property. |
|
|
Returns the current state of a managed property mapping. |
|
|
Adds a crawled property category to a search service application. |
|
|
Adds a crawled property to a search application crawled property category. |
|
|
Adds a managed property to a shared search application. |
|
|
Adds a managed property mapping to a shared search application. |
|
|
Deletes a crawled property category. |
|
|
Deletes a metadata managed property. |
|
|
Deletes a metadata mapping from a managed property. |
|
|
Sets properties of a crawled property category for a shared search application. |
|
|
Sets the properties of a metadata crawled property for a shared search application. |
|
|
Sets the properties of a metadata managed property. |
|
|
Sets the properties of a managed property mapping for a shared search application. |
|
|
Returns the collection of rules that are applied to search results. |
|
|
Returns a property rule. |
Topology
| Cmdlet name | Description |
|---|---|
|
Imports and activates a topology from an XML file. |
|
|
Exports an existing search topology. |
|
|
Activates a given search topology. |
|
|
Removes an inactive search topology from a search service application. |
|
|
Removes the specified search component from the given search topology. |
|
|
Creates a new search topology in the given search service application. |
|
|
Creates a new query processing component for the given topology and search service instance. |
|
|
Creates a new index component for the given topology and search service instance. |
|
|
Creates a new content processing component for the given topology and search service instance. |
|
|
Retrieves one or all search topologies that belong to a given search service application. |
General
| Cmdlet name | Description |
|---|---|
|
Returns a language resource phrase. |
|
|
Returns the shared site hit rule. |
|
|
Adds a language resource phrase to a shared search application. |
|
|
Adds a new site hit rule for a search application. |
|
|
Deletes a language resource phrase from a shared search application. |
|
|
Deletes a site hit rule. |
|
|
Retrieves the index paths for all active search index components on the current server. |
|
|
Returns the content enrichment configuration for the specified search service application. |
|
|
Sets the primary search host controller for the farm. |
|
|
Sets the operation status of the linguistic query and document processing components. |
|
|
Stores the specified content enrichment configuration to the search service application. |
|
|
Removes the current content enrichment configuration from the search service application. |
|
|
Creates a new ContentEnrichmentConfiguration object. |
|
|
Returns the status of the linguistic query and document processing components. |
|
|
Lists the specified or all search host controllers in the farm. |
|
|
Sets properties of a links database for a search service application. |
|
|
Obsolete. For replacement, see Move-SPEnterpriseSearchLinksDatabases |
|
|
Repartitions data across links databases. |
|
|
Removes a defined search schema. |
|
|
Removes all tenant specific search settings. |
|
|
Deletes a links database. |
|
|
Remove a previously registered file format from the system. |
|
|
Creates a new links database for a search service application. |
|
|
Adds a new file format in the parsing system. |
|
|
Creates a new analytics processing component for the given topology and search service instance. |
|
|
Imports a custom extraction dictionary. |
|
|
Retrieves a reference to a links database. |
|
|
Retrieves all parseable file formats. |
|
|
Enables or disables parsing of a given file format. |
|
|
Retrieves one or all search components in a given search topology. |
|
|
Retrieves information about the search service application backup files. |
