Options
Edit pageAn updated list of all available options for Xapiand can be retrieved using
xapiand --help.
Verbosity
Section titled “Verbosity”Verbosity of the servers logs can be set by using the -v, --verbose or
--verbosity options. very-very-very verbose output is usually enabled
with -vvvv or --verbosity=4. This mode also enables --human, --echo,
--pretty and --comments options by default.
Echo makes Xapiand return newly created or edited objects as part of the
response. Usually when creating a new object Xapiand will return 201 Created
HTTP response code, without a body and 204 No Content HTTP response when
updating existing objects, also without a body. Returning a body can be enabled
with the --echo option or by using a verbosity level higher or equal to 4.
Pretty
Section titled “Pretty”Pretty makes Xapiand return pretty (formatted) JSON output as responses. This
option can be enabled with the --pretty option or by using a verbosity level
higher or equal to 4.
Human makes Xapiand return humanized numbers for size and times in the output
of the responses. This option can be enabled with the --human option, by
setting output to be “pretty” or by using a verbosity level higher or equal to 4.
Strict
Section titled “Strict”Schemas are normally automatically created by default, guessing the type of new
fields being indexed. The --strict option disables this
Dynamic Typing
feature and forces the user to specify a type for all new fields, making the
request fail with 412 Precondition Failed if the datatype is missing.
Node and Data
Section titled “Node and Data”-D,--databasesets the path to the root of the node, where all index data lives.--namesets the node name;--clustersets the cluster it joins.--portsets the HTTP REST API port.-d,--detachruns the process in the background.--soloruns a single-node indexer with no replication or discovery, useful for local development and tests.
Index Defaults
Section titled “Index Defaults”New indexes inherit these unless overridden per index (see Data Replication):
--shardssets the default number of primary shards per index.--replicassets the default number of replicas per index.
Cluster and Networking
Section titled “Cluster and Networking”--discovery-port,--discovery-groupand--discovery-interfacecontrol the UDP multicast used to discover other nodes. Pin--discovery-interface(e.g. to127.0.0.1) on a multi-homed or VPN host where the default interface can’t multicast.--replica-portis the TCP port for the replication protocol.--primary-nodenames the node holding the primary cluster database, and--database-stall-timeis how long to wait before a shard may be promoted to primary.--writersand--wal-writer-cache-sizetune the WAL writer pool.
For the complete, authoritative list, run xapiand --help.
