• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Creating a Search Engine wit... > Making Your Collection Searchable

Making Your Collection Searchable

When an indexed collection exists,you're free to allow users to conduct searches against it. Searching a Verity collection involves using the <cfsearch> tag. <cfsearch> returns a set of results that are structurally similar to results returned by a <cfquery> tag. As you'll see in this section, you can feed the results directly into a <cfoutput> tag to present the search findings to the user quickly and easily.

All you really need to start a Verity search is a keyword to search for, but the <cfsearch> tag can handle much more than that. The example in this section demonstrates how robust the <cfsearch> tag and the results it returns are. To begin, consider the HTML form shown in Figure 13.4. This form allows users to enter a comma-delimited list of keywords, as well as choose which collections they want to search and the maximum number of records they want returned. The code for this page is shown in Listing 13.3.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint