CollectionCreate()
Creates a brand new collection. If it already exists then this function will throw an exception
Usage
BOOLEAN = CollectionCreate(
collection,
storebody,
language,
path,
relative,
onexists
)
Argument | Summary |
---|---|
collection | the name of the collection |
storebody | a flag to determine if the body is stored as a whole in the index. For large collections this can take up a lot of space. defaults to false [optional] |
language | language this collection is using. defaults to 'english'. Valid: english, german, russian, brazilian, korean, chinese, japanese, czech, greek, french, dutch, danish, finnish, italian, norwegian, portuguese, spanish, swedish [optional] |
path | path to where the collection will be created. If omitted then it will be created in the working directory under the 'cfcollection' directory [optional] |
relative | a flag to determine if the 'path' attribute, if presented, is relative to the web path [optional] |
onexists | define what to do if the collection already exists or the path contains an existing index. Valid options are ERROR (default) and SKIP [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
CollectionCreate( collection=?, storebody=?, language=?, path=?, relative=?, onexists=? );
Supports passing parameters as a structure using ArgumentCollection:
CollectionCreate( ArgumentCollection={ collection : ?, storebody : ?, language : ?, path : ?, relative : ?, onexists : ? } );
Extra
For more information on searching please visit Searching within OpenBD CFML