Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

Import-SPEnterpriseSearchCustomExtractionDictionary

SharePoint 2013

Published: July 16, 2012

Applies to:  SharePoint Server 2013 Enterprise | SharePoint Server 2013 Standard 

Imports a custom entity extraction dictionary.

Import-SPEnterpriseSearchCustomExtractionDictionary -DictionaryName <String> -FileName <String> -SearchApplication <SearchServiceApplicationPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]

Parameters

Parameter Required Type Description

DictionaryName

Required

System.String

Specifies the name of the target dictionary. The name must be one of the following 12 predefined dictionaries. The name signifies the “case sensitivity” and “token matching” behavior.

  1. Microsoft.UserDictionaries.EntityExtraction.Custom.Word.1

  2. Microsoft.UserDictionaries.EntityExtraction.Custom.Word.2

  3. Microsoft.UserDictionaries.EntityExtraction.Custom.Word.3

  4. Microsoft.UserDictionaries.EntityExtraction.Custom.Word.4

  5. Microsoft.UserDictionaries.EntityExtraction.Custom.Word.5

  6. Microsoft.UserDictionaries.EntityExtraction.Custom.ExactWord.1

  7. Microsoft.UserDictionaries.EntityExtraction.Custom.WordPart.1

  8. Microsoft.UserDictionaries.EntityExtraction.Custom.WordPart.2

  9. Microsoft.UserDictionaries.EntityExtraction.Custom.WordPart.3

  10. Microsoft.UserDictionaries.EntityExtraction.Custom.WordPart.4

  11. Microsoft.UserDictionaries.EntityExtraction.Custom.WordPart.5

  12. Microsoft.UserDictionaries.EntityExtraction.Custom.ExactWordPart.1

FileName

Required

System.String

Specifies the full UNC (Universal Naming Convention) path of the .csv file to be imported.

SearchApplication

Required

Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind

Specifies the search service application to which the custom entity extraction dictionary should be imported.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

note Note:

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Detailed Description

This cmdlet imports a custom entity extraction dictionary from a .csv file. In order to activate custom entity extraction you must also configure entity extraction in the search schema.

Input Types

Return Types

------------------EXAMPLE-----------------

$searchApp = Get-SPEnterpriseSearchServiceApplication

Import-SPEnterpriseSearchCustomExtractionDictionary -SearchApplication $searchApp -Filename \\host\share\entity_extraction.csv -DictionaryName Microsoft.UserDictionaries.EntityExtraction.Custom.Word.1

This example imports the custom entity extraction dictionary that is located at \\host\share to the default search service application. The entries of this dictionary will be matched in a case-insensitive way against the terms in the documents being indexed.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.