User Guide

276 Chapter 15 Indexing and Searching Data
<cfcase value="Create">
<cfcollection action="Create"
collection="#Form.CollectionName#"
path="C:\CFUSION\Verity\Collections\">
<p>The collection #Form.CollectionName# is created.
</cfcase>
<cfcase value="Repair">
<cfcollection action="Repair"
collection="#Form.CollectionName#">
<p>The collection #Form.CollectionName# is repaired.
</cfcase>
<cfcase value="Optimize">
<cfcollection action="Optimize"
collection="#Form.CollectionName#">
<p>The collection #Form.CollectionName# is optimized.
</cfcase>
<cfcase value="Delete">
<cfcollection action="Delete"
collection="#Form.CollectionName#">
<p>Collection deleted.
</cfcase>
</cfswitch>
</cfoutput>
</body>
</html>
3 Save the file as collectioncreateaction.cfm.
4 View the file
collectioncreateform.cfm in your browser, enter values and
submit the form.
Populating and indexing a collection
When you create a new collection, it is just an empty shell. You can use either of the
following methods to populate a Verity collection:
Use the ColdFusion Administrator Verity Collections page.
Code the cfindex tag.
Note
You can index and search against Verity collections created outside of ColdFusion by
using the external attribute of cfindex and cfsearch.