mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
Set some logs to trace
This commit is contained in:
parent
7df77208fe
commit
47697a8056
@ -37,17 +37,17 @@ object SolrUpdate {
|
|||||||
|
|
||||||
def add(tds: List[TextData]): F[Unit] = {
|
def add(tds: List[TextData]): F[Unit] = {
|
||||||
val req = Method.POST(tds.asJson, url)
|
val req = Method.POST(tds.asJson, url)
|
||||||
client.expect[String](req).map(r => logger.debug(s"Req: $req Response: $r"))
|
client.expect[String](req).map(r => logger.trace(s"Req: $req Response: $r"))
|
||||||
}
|
}
|
||||||
|
|
||||||
def update(tds: List[TextData]): F[Unit] = {
|
def update(tds: List[TextData]): F[Unit] = {
|
||||||
val req = Method.POST(tds.filter(minOneChange).map(SetFields).asJson, url)
|
val req = Method.POST(tds.filter(minOneChange).map(SetFields).asJson, url)
|
||||||
client.expect[String](req).map(r => logger.debug(s"Req: $req Response: $r"))
|
client.expect[String](req).map(r => logger.trace(s"Req: $req Response: $r"))
|
||||||
}
|
}
|
||||||
|
|
||||||
def delete(q: String): F[Unit] = {
|
def delete(q: String): F[Unit] = {
|
||||||
val req = Method.POST(Delete(q).asJson, url)
|
val req = Method.POST(Delete(q).asJson, url)
|
||||||
client.expect[String](req).map(r => logger.debug(s"Req: $req Response: $r"))
|
client.expect[String](req).map(r => logger.trace(s"Req: $req Response: $r"))
|
||||||
}
|
}
|
||||||
|
|
||||||
private val minOneChange: TextData => Boolean =
|
private val minOneChange: TextData => Boolean =
|
||||||
|
@ -367,13 +367,25 @@ docspell.joex {
|
|||||||
|
|
||||||
# Configuration of the full-text search engine.
|
# Configuration of the full-text search engine.
|
||||||
full-text-search {
|
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 = false
|
enabled = false
|
||||||
migration = {
|
|
||||||
index-all-chunk = 10
|
# Configuration for the SOLR backend.
|
||||||
}
|
|
||||||
solr = {
|
solr = {
|
||||||
url = "http://localhost:8983/solr/docspell"
|
url = "http://localhost:8983/solr/docspell"
|
||||||
commit-within = 1000
|
commit-within = 1000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Settings for running the index migration tasks
|
||||||
|
migration = {
|
||||||
|
# Chunk size to use when indexing data from the database. This
|
||||||
|
# many attachments are loaded into memory and pushed to the
|
||||||
|
# full-text index.
|
||||||
|
index-all-chunk = 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user