Excluding fields from being sent to OpenSearch
The <ExcludeFields> element in the server-side configuration file smarttarget_conf.xml specifies the Schema fields, Metadata Schema fields, and Embedded Schema fields you want to exclude from being published to OpenSearch.
About this task
You define the structure of content for Components, Multimedia Components, Metadata, and Embeddable Schemas in Tridion Sites using XML Schemas. When content is deployed to OpenSearch, the list of <ExcludeFields> is checked to see whether or not a field should be added to the resulting OpenSearch XML generated from the transport package.
<ExcludeFields> section contains one or more Schema subsections. The following sample shows the structure:
<ExcludeFields>
<Schema Id="SchemaID">
<Field>value</Field>
<MetadataField>value</MetadataField>
<EmbeddedField SchemaFieldName="XMLName">value</EmbeddedField>
<EmbeddedMetadataField SchemaFieldName="XMLName">value</EmbeddedMetadataField>
</Schema>
</ExcludeFields>
- SchemaID is the ID of the Schema, as found in the middle of the Schema's Content Manager URI. For example, the ID of the Schema with the Content Manager URI
tcm:7-212-8is 212. The Schema ID refers to the Schema in whichever Publication it occurs, and so you are excluding the Schema in all those Publications. - XMLName is the XML name of the Schema (Metadata) Field, that is, the XML Name property of the Schema Field as found in Content Manager Explorer.
<ExcludeFields> can contain multiple <Schema> elements:
<ExcludeFields> Child Element | Description |
|---|---|
<Schema> | The Content Manager URI of the Schema in the Uri attribute. |
The <Schema> can contain the following elements:
<Schema> Child Elements | Description |
|---|---|
<Field> | The XML name of the Schema field you want to exclude. |
<MetadataField> | The XML name of the Metadata field you want to exclude. |
<EmbeddedField> | In the SchemaFieldName attribute, specify the XML name of the Schema field that contains the Embedded Schema, and then specify the XML name of the field in the Embedded Schema you want to exclude. |
<EmbeddedMetadataField> | in the SchemaFieldName attribute, specify the XML name of the Metadata Schema field which contains the Embedded Schema and then specify the XML name of the field in the Embedded Schema you want to exclude. |