/, TeamSite/Search within a DCT/TeamSite template

Providing you have TeamSite installed along with TeamSite Search (Both in working order), you can configure TeamSite Search to search within a Data Capture Template (DCT)/ TeamSite template for a specified field

e.g. Organisation ID

The file you need to configure to allow this to happen is FieldMapping.xml, located in search-home/etc

An example of the code you would input here can be found below;

<templates>
<!– * Organisation ID * –>
<template>
<templateType>contactinformation/building</templateType>
<templatingFields>
<templatingField>
<xpath>/main/organisation</xpath>
<fieldSpecification>
<fieldName>OrganisationsID</fieldName>
<fieldType>string</fieldType>
<fieldStorage>zone:contact_info_Organisations_ID</fieldStorage>
</fieldSpecification>
</templatingField>
</templatingFields>
</template>
</templates>

For more information on how you would code this, please contact us and we can expand further on this article

By |2008-12-03T17:39:32+00:00December 3rd, 2008|Search, TeamSite|0 Comments

About the Author: