<cfcollection>

Allows you to create and administer Search collections.

This tag cannot have a body.

This tag is also supported within <cfscript>

<cfcollection engine=string categories=boolean action=create|repair|delete|optimize|list|map|categoryList collection=string path=string language=string name=string >
Attribute Description Default
engine
string, optional

This attribute only exists for compatibility reasons to other CFML engines, the attribute is completely ignored by Lucee.

categories
boolean, optional

Used only for creating a collection

action
string, optional

Specifies the action to perform.

list

collection
string, optional

Specifies a collection name or an alias if action = "map"

path
string, optional

Absolute path to a Lucene collection.

language
string, optional

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, optional

Name for the query results returned by the list action.

Alias: variable

Examples

<cfcollection action="Create" collection="colName" path= "path" language="">
<cfcollection action="Delete" collection="colName">

See also