Partilhar via


entry element

Applies to: SharePoint Server 2010

    <entry key='entryKey' value='entryValue' />

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Name

Description

key

Required. A string representing the key of the dictionary entry, that is, the entry string itself that must match text in the processed item.

value

Optional. A string representing a value that is associated with a dictionary entry. In the case of property extraction, this is the value that is added to the target crawled property if the value of key match the item.

Child Elements

None.

Parent Elements

Name

Description

dictionary

A list of entry elements for the dictionary.

Remarks

The dictionary matching is case-sensitive. This means that the casing of the words in the dictionary must match the casing of the words in the items.

Example

The following example defines a property extraction dictionary that extracts terms related to wine terminology. To make the extractor case-insensitive, add all case variations to the dictionary.

<dictionary>
  <entry key="Wine" value="wine" />
  <entry key="wine" value="wine" />
  <entry key="red wine" value="red wine" />
  <entry key="Red wine" value="red wine" />
  <entry key="white wine" value="white wine" />
  <entry key="White wine" value="white wine" />
  <entry key="Chardonnay" value="chardonnay" />
  <entry key="chardonnay" value="chardonnay" />
</dictionary>

The associated property extractor may extract these wine-related terms to a new crawled property. The matching will handle different casing of the terms, and normalize the casing in the resulting crawled property.

See Also

Concepts

Creating a Custom Property Extractor

Linguistic Dictionary Schema (FAST Search Server 2010 for SharePoint)