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

Chapter 38. Full-Text Searching > Creating a Search Interface

Creating a Search Interface

The <cfsearch> tag is used to query Verity collections. Typically, an application has a form that collects search parameters from the user; this form is submitted to an application page that invokes the <cfsearch> tag. <cfsearch> generates a query object containing records from the specified collection that match the keywords of the criteria attribute. The following snippet performs a search and returns a query named SearchResults:

<cfsearch collection="SnailsAndPuppyDogTails"
          name="SearchResults"
          type="SIMPLE"
          criteria="#FORM.keywords#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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