Lucee Tag Reference

<cfcollection>

Allows you to create and administer Search collections.

Body

This tag can't have a body.

Example

<cfcollection
[action=create|repair|delete|optimize|list|map|categorylist]
[categories=boolean]
[collection=string]
[engine=string]
[language=string]
[name=string]
[path=string]>
This tag is also supported within cfscript
<cfscript>
collection
[action=create|repair|delete|optimize|list|map|categorylist]
[categories=boolean]
[collection=string]
[engine=string]
[language=string]
[name=string]
[path=string];
</cfscript>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Default Value Description
action string No list Specifies the action to perform. 
categories boolean No Used only for creating a collection 
collection string No Specifies a collection name or an alias if action = "map" 
engine string No This attribute only exists for compatibility reasons to other CFML engines, the attribute is completely ignored by Lucee. 
language string No language the collection is based on: possible values are:
english,german,russian,dutch,french,italian,norwegian,portuguese,spanish,brazilian,chinese,greek,thai,danish,japanese,norwegian,korean 
name string No Name for the query results returned by the list action. 
path string No Absolute path to a Lucene collection.