User Guide

Table Of Contents
Creating a search page 561
4.
Enter (or Browse to) the directory path that contains the files to be indexed; for example,
C:\Inetpub\wwwroot\vw_files.
5.
(Optional) To extend the indexing operation to all directories below the selected path, select the
Recursively index subdirectories check box.
6.
(Optional) Enter a Return URL to prepend to all indexed files.
This step lets you create a link to any of the files in the index; for example,
http://127.0.0.1/vw_files/.
7.
(Optional) Select a language other than English.
For more information, see “Specifying a language” on page 551.
8.
Click Submit Changes.
On completion, the Verity Collections page appears.
Note: The time required to generate the index depends on the number and size of the selected
files in the path.
This interface lets you easily build a very specific index based on the file extension and path
information you enter. In most cases, you do not need to change your server file structures to
accommodate the generation of indices.
Creating a search page
You use the cfsearch tag to search an indexed collection. Searching a Verity collection is similar
to a standard ColdFusion query: both use a dedicated ColdFusion tag that requires a
name
attribute for their searches and both return a query object that contains rows matching the search
criteria. The following table compares the two tags:
Note: You receive an error if you attempt to search a collection that has not been indexed.
The following are important attributes for the cfsearch tag:
cfquery cfsearch
Searches a data source Searches a collection
Requires a
name attribute Requires a name attribute
Uses SQL statements to specify search criteria Uses a criteria attribute to specify search criteria
Returns variables keyed to database table field
names
Returns a unique set of variables
Uses
cfoutput to display query results Uses cfoutput to display search results
Attribute Description
name
The name of the search query.
collection
The name of the collection(s) being searched. Separate multiple collections with
a comma; for example,
collection = "sprocket_docs,CodeColl".