Verity Index (Collection)

From Wiki
Jump to: navigation, search

Verity Collections can be created and managed within your Coldfusion code, not just within ColdFusion Administrator.

Creating a New Collection

To create a collection, use the cfcollection tag. Also, be sure to use your own unique name instead of "CollectionName":

<cfcollection action = "create" collection = "CollectionName" path = "D:\home\\path-to-collection">

Note: Put your actual domain name in place of '', then follow that by the path from you document root to the collection. Also, the following actions are available for cfcollection: categorylist, create, delete, list, map, optimize, and repair. More information about this tag can be found at Adobe's site: cfcollection documentation.

The cfindex tag allows a collection to be indexed without the need for ColdFusion Administrator:

<cfindex collection="CollectionName" action="refresh" extensions=".htm, .html, .xls, .txt, .doc"
	key="D:\home\\" type="path" urlpath="D:\home\\"
	recurse="Yes" language="English">

Note: Please replace '' with your actual domain name. The following actions are available for cfindex: update, delete, purge, and refresh. More information about the this tag can be found at Adobe's site: cfindex documentation.

Troubleshooting Errors

If you get an error: "collection named: Collection_Name does not exist", try the following;

a) remove any "_" and capitol letters from your "Collection_Name". For example: change


b) remove any "\" from end of your path. for example change;

path = "D:\home\\path-to-collection\"
path = "D:\home\\path-to-collection"

c) change


It may also help to put your website name into the collection name, for example: "hostekcollection1"

Also for cfindex, be careful, some params work with certain other params. For example:

if type="path" THEN 
urlpath="D:\home\\" and 

HOWEVER, if type="file" THEN

urlpath="", and