Stemming in simple queries

By default, Verity interprets words in a simple query as if you entered the STEM operator (and MANY modifier). The STEM operator searches for words that derive from a common stem. For example, a search for instructional returns files that contain instruct, instructs, instructions, and so on.

The STEM operator works on words, not word fragments. A search for instrument returns documents containing instrument, instruments, instrumental, and instrumentation, whereas a search for instru does not. (A wildcard search for instru* returns documents with these words, and also those with instruct, instructional, and so on.)

Note: The MANY modifier presents the files returned in the search as a list based on a relevancy score. A file with more occurrences of the search word has a higher score than a file with fewer occurrences. As a result, the search engine ranks files according to word density as it searches for the word that you specify, as well as words that have the same stem. For more information on the MANY modifier, see Modifiers.

The following figure shows a basic search interface performing a single word search:


A basic search interface performing a single word search

The results of this search show the effects of the STEM operator and MANY modifier:


Results of a search showing the effects of the STEM operator and MANY modifier

In CFML, enter your search term(s) in the criteria attribute of the cfsearch tag:

<cfsearch name="search_name"
   collection="bbb"
   type="simple"
criteria="instructional">

View comments on LiveDocs