Populating Collections

The next step after creating a Verity collection is to populate it with indexed data. Populating a Verity collection is accomplished with the cfindex tag. With the cfindex tag, ColdFusion can index data from a number of sources including numerous file types and query results from any ColdFusion query. What this means is that you can use the cfindex tag to index everything from HTML files and word-processed documents to relational databases, LDAP directories, and POP mail accounts.

Indexing Files

The great thing about bundling Verity’s search technology with ColdFusion is that you can build applications capable of searching a wide range of document types, including both text and binary formats. The Verity engine comes with the KeyView Filter Kit, allowing it to index and search over 45 popular document types, including most popular text, word processing, spreadsheet, and presentation formats. For a complete list of supported formats, see the ColdFusion MX documentation at http://livedocs.macromedia.com.

Note that versions of ColdFusion through 4.5.1 contain the VDK 2.4.1 engine. Because VDK 2.4.1 is an older technology, Microsoft Office 2000 documents aren’t supported. ColdFusion 5.0 and MX include the newer VDK 2.6.1 as well as the Verity K2 Server. These versions of the Verity engine include support for MS Office 2000 documents. You should also be aware that, due to a limitation in the Verity engine, the Linux versions of ColdFusion through 5.0 and ...

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.