Macromedia colfusion mx 7 手册

下载
页码 170
144
Chapter 10:  Using Verity Utilities
Creating a collection
Creating a collection with the mkvdk utility involves setting up a collection directory structure 
and inserting documents into this structure. You can create a collection using the following steps.
To create a collection:
1.
Set up a collection using the following syntax:
mkvdk -create -collection collectionname
Where 
collectionname
 is the path to the collection directory. Running this command creates 
a collection directory that includes style files with configuration information.
2.
Insert documents using the following syntax:
mkvdk -collection collectionname -bulk -insert filespec
Where 
filespec
 is the name of a bulk insert file that specifies which documents to index and 
insert into the collection.
Collection setup options
The mkvdk utility has a variety of collection setup options, which the following table describes:
Examples: setting up collections
The following examples show the commands for creating a collection and building the word list:
Creating a collection
  The following command creates a collection in path_2 using the style 
files in path_1, and submits and indexes the document(s) in filespec:
mkvdk -create -style path_1 -collection path_2 filespec
Building the word list
  The following command builds the word list in the collection residing in 
the path directory:
mkvdk -words -collection path
Option
Description
-create
Creates a collection in the specified collection directory. It creates the directory 
structure, determines the index contents and sets up the document’s table 
schema according to the style files used. If the specified collection already 
exists, the mkvdk utility exits rather than overwriting the existing collection.
-style dir
Specifies the style directory that contains the style files to use to create a 
collection. This option can only be used with the 
-create
 option. If you do not 
specify this option when you use the mkvdk utility to create a collection, the 
mkvdk utility uses the style files in the common/style directory.
-description desc
Sets the collection’s description. Enter alphanumeric text, such as “This 
collection contains electronic mail from ABC Company.” Include the quotation 
marks.
-words
Builds the word list for all partitions in the collection.