-
Notifications
You must be signed in to change notification settings - Fork 107
SPSearchManagedProperty
dscbot edited this page Mar 17, 2023
·
8 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | The name of the managed property | |
ServiceAppName | Key | String | The name of the search service app that this managed property exists within | |
PropertyType | Required | String | The type of managed property - choose between Binary, DateTime, Decimal, Double, Integer, Text, and YesNo |
Binary , DateTime , Decimal , Double , Integer , Text , YesNo
|
Searchable | Write | Boolean | Should the property be Searchable | |
Queryable | Write | Boolean | Should the property be Queryable | |
Retrievable | Write | Boolean | Should the property be Retrievable | |
HasMultipleValues | Write | Boolean | Should the property allow for multiple values to be selected | |
Refinable | Write | Boolean | Should the property be Refinable | |
Sortable | Write | Boolean | Should the property be Sortable | |
SafeForAnonymous | Write | Boolean | Should the property be marked as safe for anonymous access | |
Aliases | Write | StringArray[] | Aliases of the managed property | |
TokenNormalization | Write | Boolean | Should the property be case sensitive | |
NoWordBreaker | Write | Boolean | Should the property only match exact content | |
IncludeAllCrawledProperties | Write | Boolean | Should the property be mapped to all crawled properties | |
CrawledProperties | Write | StringArray[] | List of crawled properties that the property is mapped with | |
Ensure | Write | String | Present if the source should exist, absent if it should not |
Present , Absent
|
Type: Distributed Requires CredSSP: No
This resource will deploy and configure a managed property in a specified search service application.
The default value for the Ensure parameter is Present. When not specifying this parameter, the managed property is created.
This example shows how create a new Managed Property, using the required parameters
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPSearchManagedProperty MyProperty
{
Name = "MyProperty"
ServiceAppName = "Search Service Application"
PropertyType = "Text"
Searchable = $true
IncludeAllCrawledProperties = $false
CrawledProperties = @("OWS_Notes, Personal:AboutMe")
PsDscRunAsCredential = $SetupAccount
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations