276
3
4
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:
Note
You can index and search against Verity collections created outside of ColdFusion by
using the
<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>
Save the file as
collectioncreateaction.cfm
View the file
collectioncreateform.cfm
submit the form.
Use the ColdFusion Administrator Verity Collections page.
Code the
tag.
cfindex
attribute of
external
Chapter 15 Indexing and Searching Data
.
in your browser, enter values and
and
cfindex
cfsearch
.