About Indexing A Collection - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

Note: You can map a collection currently available on your network or local disk by creating a local
reference (an alias) for that collection. In this procedure, enter the collection alias as the collection
name, and enter a UNC (Universal Naming Convention) path to the folder for the collection.
You have successfully created a collection, DemoDocs, that currently has no data. A collection
becomes populated with data when you index it. For more information, see the next section,
"About indexing a collection" on page

About indexing a collection

A new collection is an empty shell that must be indexed before you search it. The indexing
procedure also populates the collection with data contained in the collection's files. Similar to
creating a collection, you can index a collection either in the ColdFusion MX Administrator or
programmatically.
Note: You can index and search against collections created outside of ColdFusion by using the
external attribute of
Use the following guidelines to determine which method to use:
Use the Administrator
To index document files
When the collection does not require
frequent updates
To create the collection without writing any
CFML code
To create a collection once
The
cfcollection
index:
repair
Repairs the internal index files of a collection. This might take a few minutes for large
collections.
optimize
Optimizes a collection. Use this if you notice that your searches on a collection
take longer than previously.
Updating an index
Documents are modified frequently in many user environments. After you index your
documents, any changes that you make are not reflected in subsequent Verity searches until you
reindex the collection. Depending on your environment, you can create a scheduled task to
automatically keep your indexes current. For more information on scheduled tasks, see
Configuring and Administering ColdFusion MX.
513.
cfindex
and cfsearch.
tag has the following
action
Use the cfindex tag
To index ColdFusion query results
When the collection requires frequent updates
To dynamically update a collection from a ColdFusion
application page
When the collection requires updating by others
attribute values that can fix or improve your
Creating a search tool for ColdFusion applications
513

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents