An indexing mode is a collection of settings in the policy style file (
style.plc
) that affects Verity engine's indexing behavior. An indexing mode affects the engine's performance during indexing as well as the layout of the index data in a collection.
mkvdk -mode
command-line option.
default
in a style.plc
file.
style.plc
file must be stored in a custom style directory that is specified at indexing time using mkvdk -style
or the VdkCollectionOpenArgRec.style
member (using the VDK API).
VdkCollectionOpen
. The mode
field in the VdkCollectionOpenArgRec
structure should point to a string that contains the name of the mode to use while indexing.For example, this sample code shows how to use the
bulkload
mode:
- {
- VdkCollectionOpenArgRec openRec;
- VdkStructInit(&openRec);
- ...
- openRec.path = "mycollection";
- openRec.mode = "bulkload";
- ...
- VdkCollectionOpen(session, &collection, &openRec);
- }
VdkCollectionSetInfo
.
-mode
option with mkvdk to set a policy mode, as follows:
coll
-mode BulkLoad -insert -bulk bulkfile
coll
is a collection name and bulk
file is the bulk load file.