Add rest endpoints to re-create the index

This commit is contained in:
Eike Kettner
2020-06-21 20:13:33 +02:00
parent 0d8b03fc61
commit 330fdcdd5b
9 changed files with 119 additions and 36 deletions

View File

@ -84,8 +84,28 @@ docspell.server {
}
}
fulltext-search {
# Configuration of the full-text search engine.
full-text-search {
# The full-text search feature can be disabled. It requires an
# additional index server available which needs additional
# memory and disk space. It can be enabled later any time.
#
# Currently the SOLR search platform is supported.
enabled = true
# When re-creating the complete index via a REST call, this key
# is required. If left empty (the default), recreating the index
# is disabled.
#
# Example curl command:
# curl -XPOST http://localhost:7880/api/v1/open/fts/reIndexAll/test123
recreate-key = ""
# Configuration for the SOLR backend.
solr = {
url = "http://localhost:8983/solr/docspell_core"
commit-within = 1000
}
}
# Configuration for the backend.
@ -147,14 +167,5 @@ docspell.server {
# By default all files are allowed.
valid-mime-types = [ ]
}
# Configuration of the full-text search engine.
full-text-search {
enabled = true
solr = {
url = "http://localhost:8983/solr/docspell_core"
commit-within = 1000
}
}
}
}