
29
CONFIGURING AND ADMINISTERING COLDFUSION 10
Using the ColdFusion Administrator
L
ast
u
p
dated
7/9/2
01
2
ColdFusion Collections page
Use this page to create and manage your Solr collections.
ColdFusion lets you manage your collections from the Administrator. You can index, optimize, purge, reload, or delete
Solr collections that are connected to ColdFusion. You use the icons in the Actions column to perform the following
actions:
ColdFusion includes Solr, which provides indexing and searching technology. This enables creating, populating, and
managing collections of indexed data that are optimized for fast and efficient site searches.
A
collection
is a logical group of documents and metadata about the documents. The
metadata
includes word indexes,
an internal documents table of document field information, and logical pointers to the document files.
For more information about building search interfaces, see Building a Search Interface and Solr search support in the
Developing ColdFusion Applications
.
If the ColdFusion Collections page is unable to retrieve collections, ensure that Solr Search Server is running.
Populate a Solr collection
After you create a collection, use the Solr Collections section to populate (or index) it, with data from text and binary
files, in a directory that you specify. A collection comprises metadata that describes indexed documents. Data from a
ColdFusion query can be indexed only by using the ColdFusion
cfindex
tag.To populate (index) a collection,
1
In the list of Solr Collections, click the name of the collection or its Index Collection button. The Index Solr
Collections page appears.
2
Review the extensions in the File Extensions field. You can add, edit, or remove extensions for files in the collection.
3
In the Directory Path field, enter the path to a directory to index. To locate and enter a path, click Browse Server.
4
To include subdirectories of the specified directory, select the Recursively Index Sub Directories option.
5
(Optional) In the Return URL field, enter the URL prefix used to display documents found in the search in a
browser.
For example, if you index the ColdFusion documentation directory, the directory you index could be
C:\ColdFusion10\cfusion\wwwroot\cfdocs
.
You would enter the return URL as
http://localhost:8500/cfdocs/.
This assumes that you are using the
built-in web server on port 8500.
6
Click Submit. ColdFusion populates the collection with data from the specified directory. Then the ColdFusion
Collections page appears.
To close the page without saving changes, click Cancel.
Action
Description
Reload
Reloads the collection.
Index
Analyzes the files in a collection and assembles metadata and pointers to the files.
Optimize
Reclaims space left by deleted and changed files by consolidating collection indexes for faster searching. You
should optimize collections regularly.
Purge
Deletes all documents in a collection, but not the collection itself. Leaves the collection directory structure intact.
Delete
Deletes a collection.