The following is a complete reference to the command line interface to
the zebraidx
application.
Syntax
zebraidx
[-t
] [type
-c
] [config
-g
] [group
-d
] [database
-m
] [mbytes
-n
] [-s
] [-v
] [level
-l
] [file
-L
] [-f
] [number
-v
] {command
} [file
...]
Commands
directory
Update the register with the files contained in
directory
.
If no directory is provided, a list of files is read from
stdin
.
See Chapter 7, Administrating Zebra.
directory
Remove the records corresponding to the files found under
directory
from the register.
Write the changes resulting from the last update
commands to the register. This command is only available if the use of
shadow register files is enabled
(see Section 8, “Safe Updating - Using Shadow Registers”).
Clean shadow files and "forget" changes.
database
Create database.
database
Drop database (delete database).
Deletes an entire register (all files in shadow+register areas).
Options:
type
Update all files as type
. Currently, the
types supported are text
and
grs
.subtype
.
If no subtype
is provided for the GRS
(General Record Structure) type, the canonical input format
is assumed (see
Section 1, “Local Representation”).
Generally, it is probably advisable to specify the record types
in the zebra.cfg
file (see
Section 1, “Record Types”), to avoid confusion at
subsequent updates.
config-file
Read the configuration file
config-file
instead of
zebra.cfg
.
group
Update the files according to the group
settings for group
(see
Section 2, “The Zebra Configuration File”).
database
The records located should be associated with the database name
database
for access through the Z39.50 server.
file
Write log messages to file
instead
of stderr
.
mbytes
Use mbytes
of memory before flushing
keys to background storage. This setting affects performance when
updating large databases.
Makes zebraidx skip symbolic links. By default, zebraidx follows them.
Disable the use of shadow registers for this operation (see Section 8, “Safe Updating - Using Shadow Registers”).
Show analysis of the indexing process. The maintenance program works in a read-only mode and doesn't change the state of the index. This options is very useful when you wish to test a new profile.
Show Zebra version.
level
Set the log level to level
.
level
should be one of
none
, debug
, and
all
.