mirror of
https://github.com/silverstripe/silverstripe-textextraction
synced 2024-10-22 11:06:00 +02:00
8aca06aef2
MySQL has a packet limit of 1MB as a default (http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html). This interferes with the UPDATE queries required to add file content caches. Since the query can't be terminated correctly, the whole content will be discarded with a query error. This change allows to truncate content prior to the UPDATE operation, and defaults to 500 characters. This leaves some room for multibyte characters as well as other parts of the SQL query.
11 lines
213 B
YAML
11 lines
213 B
YAML
---
|
|
Name: textextraction
|
|
---
|
|
Injector:
|
|
FileTextCache: FileTextCache_Database
|
|
|
|
SolrCellTextExtractor:
|
|
# base_url: 'http://localhost:8983/solr/update/extract'
|
|
|
|
FileTextCache_Database:
|
|
max_content_length: 500000 |