Building a Search Interface

To give your end users search access to Verity collecitons, you use the CFX_SEARCH tag to pass query expressions to the Verity search engine for execution.

The CFX_SEARCH tag allows you to build queries against data in Verity collections. The collections must first be defined using the Cold Fusion Verity Administrator, and then generated using either the Cold Fusion Verity Administrator, or the CFX_INDEX tag.

Note: You can only generate indexes of ASCII text files using the Cold Fusion Verity Administrator. To index other data sources, you use the CFX_INDEX tag.

Operators

When you search Verity collections with the CFX_SEARCH tag, you have access to a wide range of search options using operators and modifiers to create a query expression.

Operators are used to refine your search or to influence the results in other ways. For example, you could construct an HTML form for conducting searches. In the form, a user could perform a search for a single term:

server

You can refine your search by limiting the search scope in a number of ways. Operators are available for limiting a query to a sentence or paragraph and you can search words based on proximity. The following operator types are available:

Modifiers

Modifiers can be used with operators to further refine query expressions. You can specify case sensitivity in a query, or force the output to be ranked by relevancy. Modifiers include: