mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-31 09:30:12 +00:00 
			
		
		
		
	Set some logs to trace
This commit is contained in:
		| @@ -37,17 +37,17 @@ object SolrUpdate { | ||||
|  | ||||
|       def add(tds: List[TextData]): F[Unit] = { | ||||
|         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] = { | ||||
|         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] = { | ||||
|         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 = | ||||
|   | ||||
| @@ -367,13 +367,25 @@ docspell.joex { | ||||
|  | ||||
|   # 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 = false | ||||
|     migration = { | ||||
|       index-all-chunk = 10 | ||||
|     } | ||||
|  | ||||
|     # Configuration for the SOLR backend. | ||||
|     solr = { | ||||
|       url = "http://localhost:8983/solr/docspell" | ||||
|       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 | ||||
|     } | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user