User Guide
188 Chapter 9 Managing Verity Collections with the mkvdk Utility
Alternatively, you can set up a collection and insert documents in one mkvdk
command, using this syntax:
mkvdk -create -collection collectionname -bulk -insert filespec
Note
The
-create option can be used only once to create the collection directory
structure. After a collection directory structure has been created, do not to use the
-create option to update the collection.
Accessing online help for mkvdk
To display a list of mkvdk command-line options, enter:
mkvdk -help
Collection setup options
mkvdk provides a variety of collection setup options, described in the following table:
Examples: Setting up collections
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
Option Description
-create This option creates a collection in the specified -collection directory. It
creates the directory structure, determines the index contents and sets
up the documents table schema according to the style files used. If the
specified collection already exists,
mkvdk exits rather than overwriting
the existing collection.
-style dir This option specifies the style directory that contains the style files to
use in creating a collection. This option can only be used with the
-create option. If you do not specify this option when you use
mkvdk to
create a collection,
mkvdk uses the style files in the common/style
directory.
-description desc This option sets the collection’s description. Enter any alphanumeric text
you like, such as “This collection contains electronic mail from ABC
Company.” Include the quotation marks.
-words This option builds the word list for all partitions in the collection.