CrawledProperty Element

Applies to: SharePoint Server 2010

<CrawledProperty propertySet='GUID' propertyName='PropertyName' propertyId='PropertyId' varType='PropertyType'>PropertyValue</CrawledProperty>

Attributes and Elements

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

Attributes

Attribute

Description

propertySet

Required. Specifies the property set of the crawled property, as a hexadecimal GUID string in the following format: 00000000-0000-0000-0000-000000000000.

The value is case-insensitive.

propertyName

Optional. Specifies a string that represents the name of the crawled property.

propertyId

Optional. Specifies an integer that represents the ID of the crawled property.

varType

Required. Specifies an integer value that represents the data type for the crawled property.

Child Elements

None.

Parent Elements

Element

Description

Document

Contains a list of CrawledProperty elements that specifies the value for the given crawled property.

Text Value

The string content of the crawled property.

Remarks

The Unicode paragraph character U+2029 is used as a separator for multivalued crawled properties to represent types such as a list of strings or numbers.

A datetime value must be output in the ISO 8601 format.

A crawled property in a property set is identified with a string or a number. You must specify either propertyName or propertyId, not both.

A data property can occur multiple times in one item, such as a SharePoint list entry with multiple attachments. This will correspond to multiple CrawledProperty elements in the input file.

Example

The following example specifies three crawled properties that may be created by a pipeline extensibility command.

<Document>
    <CrawledProperty propertySet="f29f85e0-4ff9-1068-ab91-08002b27b3d9" 
                     varType="31" propertyId="4">John Doe</CrawledProperty>
    <CrawledProperty propertySet="f29f85e0-4ff9-1068-ab91-08002b27b3d9" 
                     varType="64" propertyId="12">2009-10-01T13:39:03Z</CrawledProperty>
    <CrawledProperty propertySet="f29f85e0-4ff9-1068-ab91-08002b27b3d9" 
                     varType="3" propertyId="14">26</CrawledProperty>
</Document>

See Also

Concepts

Integrating an External Item Processing Component

Pipeline Extensibility Configuration Schema

Pipeline Extensibility Interface Schema