The following is the basic mkvdk syntax:
mkvdk -collection path [option] [...] [filespec] [...]
Where:
- Square brackets ( [ ] ) indicate optional items.
- An ellipsis (...) indicates repetition of the previous item. Thus, [filespec] [...] indicates an optional series of filespec items.
- filespec represents a document filename or a list of document filenames. If filespec is a list of files, it should consist of an at sign (@) followed by the filename containing the list (for example, @filelist).
- The -collection path argument creates or opens a collection. This argument is required.
Numerous optional syntax options are listed below. All syntax options must precede the first filespec parameter.
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.
Create a collection
- 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.
- 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.