User Guide

138 Chapter 7 Indexing XML Documents
Indexing Overview
The addition of Verity K2 to ColdFusion 5 includes the ability to index and search
XML documents. To be properly indexed, XML data files must be well-formed XML
documents, as specified in the Extensible Markup Language Recommendation http:/
/www.w3.org/TR/REC-xml.
Briefly stated, a well-formed XML document contains elements that begin with a
start tag and terminate with an end tag. One element, which is called the root or
document element, cannot appear in the content of another element. For all other
elements, if the start tag is in the content of another element, the end tag is also in
the content of the same element.
The XML data files must have a
.xml extension if the universal filter is used. If
documents do not have a
.xml extension, you can index XML documents into an
XML-only collection by specifying the XML filter in the
style.dft file.
Implementation summary
Verity support for XML documents is implemented by an XML filter file and
controlled using a number of style files. The style files can be found in the following
locations:
cfusion\verity\Common\style (Windows)
opt/coldfusion/verity/common/style (UNIX)
cfusion\verity\common\style\file (Windows)
cfusion\verity\common\style\custom (Windows)
opt/coldfusion/verity/common/style/file (UNIX)
opt/coldfusion/verity/common/style/custom (UNIX)