Whatever message this page gives is out now! Go check it out!
cfcollection supports script style syntax:
new collection().CREATE(collection="<collection_name>", engine="solr", path="<path to the solr directory>");
<cfcollection
action = "action"
categories = "yes|no"
collection = "collection name"
engine = "solr
language = "language"
name = "query name"
path = "c">Attribute | Req/Opt | Default | Description |
action | Required; see Usage | list |
|
categories | See Usage | no | Used only for creating a collection:
|
collection | See Usage |
| |
engine | Optional | Solr | The search engine for the collection:
|
language | See Usage | English | For a list of options, see Usage. |
name | See Usage | Name for the query results returned by the list and categorylist actions. | |
path | Optional | Absolute path to a collection. To map an existing collection, specify a fully qualified path to the collection (not including the collection name); for example, "C:\MyCollections\". All collections are created in the location specified in Solr Home field on the ColdFusion administration page. Note: Starting with ColdFusion 2016, the path attribute will be ignored. All the collections will be created in the collections directory at the location specified in Solr_Home field in the ColdFusion administrator page. |
This attribute is required, optional, or unnecessary (blank): | For this action attribute value: | ||||||
list | create | map | optimize | repair | delete | category list | |
collection | Required | Required | Required | Required | Required | Required | |
path (Deprecated) | |||||||
language | Optional | Optional | |||||
name | Required | Required | |||||
categories |
CATEGORIES | |
blue | 10 |
green | 3 |
magenta | 3 |
purple | 2 |
CATEGORYTREES | |
a/ | 10 |
a/b | 10 |
a/b/c | 10 |
a/b/c/subdir | 3 |
Column | Contents |
CATEGORIES |
|
CHARSET | The character set of the collection. |
CREATED | The date and time that the collection was created. |
DOCCOUNT | The number of documents in this collection. |
EXTERNAL |
|
LANGUAGE | The locale setting of the collection. This information is not available for K2Server collections. |
LASTMODIFIED | The date and time that the collection was last changed. |
MAPPED | Obsolete. |
NAME | The name of the collection. |
ONLINE | Obsolete. |
PATH | Absolute path to the collection. |
REGISTERED | Obsolete. |
SIZE | The size of the collection, expressed in kilobytes. |
<cfcollection action="list" name="myCollections" >
<cfquery name="qoq" dbtype="query">
SELECT * from myCollections
WHERE myCollections.name = 'myCollectionName'
</cfquery>
<cfif qoq.recordcount GT 0>
<!--- Collection exists --->
<cfdump var = #qoq#>
</cfif><cfcollection action="list" name="myCollections">
<cfoutput query="myCollections">
#name#<br>
</cfoutput>Brazilian | cjk (Chinese, Japanese, Korean) | French | Russian |
Czech | Dutch | German | Thai |
Chinese | English | Greek |