IBM Books
(C) IBM Corp. 2000

DB2 Net Search Extender Administration and User's Guide


Defining a document model for Outside-In filtered documents

Document models for the Outside-In format are very similar to HTML document models in that they allow you to map structural elements identified by a given set of tags to NSE text fields and document attributes. Assume you have a set of Microsoft Word documents and want to index the document properties "title", "subject", and "keyword" as fields, and the document properties "author" and "category" as document attributes. The following example for an Outside-In document model will achieve this mapping:

<?xml version="1.0"?>
<INSOModel>
 
<INSOFieldDefinition
name="title"
tag="SCCCA_TITLE"/>
 
<INSOFieldDefinition
name="title"
tag="SCCCA_SUBJECT"/>
 
<INSOFieldDefinition
name="title"
tag="SCCCA_KEYWORDS"/>
 
<INSOAttributeDefinition
name="author"
tag="SCCCA_AUTHOR"
type="STRING"/>
 
<INSOAttributeDefinition
name="category"
tag="SCCCA_CATEGORY"
type="STRING"/>
 
</INSOModel>
 


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]