# koha-elasticsearch

koha-elasticsearch

8

koha-elasticsearch

Manage Elasticsearch-related tasks for Koha instances.

UNIX/Linux

### Description

Provides Elasticsearch-related tasks for Koha instances. An action needs to be passed.

          koha-elasticsearch --rebuild
          -d|--delete
          -r|--reset
          -b|--biblios
          -a|--authorities
          -v|--verbose
          -c n|--commit n
          -v|--verbose
          instancename

### Actions

`--rebuild`

- Makes

  koha-elasticsearch

  rebuild Elasticsearch indexes based on the parameters. By default it rebuilds both authority and bibliographic records. This behaviour can be controlled with the `-a` and `-b` parameters.

### Options

`-d`

- In conjunction with `--rebuild`, it deletes existing indexes before reindexing.

`-r`

- In conjunction with `--rebuild`, it reloads the settings from the Elasticsearch files set in koha-conf.xml . This option implies delete.

`-a`

- In conjunction with `--rebuild`, it triggers authority record reindexing.

`-b`

- In conjunction with `--rebuild` it triggers bibliographic record reindexing.

`-c, --commit`

- Specifies how many records will be batched up before they are added to Elasticsearch (default: 5000). Higher values lead to better performance, but take more RAM.

`-v, --verbose`

- Be verbose. Useful for debugging indexing problems.

`-h, --help`

- Display usage information.

### See also

- `koha-rebuild-zebra(8)`