Fehler beim Auffrischen des Solr-Index
Beim Auffrischen des Solr-Indexes mit paster --plugin=ckan search-index rebuild -r --config=/etc/ckan/default/production.ini
kam es auf dem Produktivsystem zu folgender Fehlermeldung:
2021-09-07 13:29:59,004 ERROR [pysolr] Solr responded with an error (HTTP 400): [Reason: Exception writing document id fb7fed8d1c211f01d54bc0614630aa0b to the index; possible analysis error: Document contains at least one immense term in field="status" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[123, 39, 106, 111, 98, 95, 99, 111, 117, 110, 116, 39, 58, 32, 50, 50, 55, 44, 32, 39, 116, 111, 116, 97, 108, 95, 100, 97, 116, 97]...', original message: bytes can be at most 32766 in length; got 80633. Perhaps the document has an indexed string field (solr.StrField) which is too large]
2021-09-07 13:29:59,005 ERROR [ckan.lib.search] Error while indexing dataset d3213fac-5365-49f7-a4f8-a99e86440d16: SearchIndexError('Solr returned an error: (u\'Solr responded with an error (HTTP 400): [Reason: Exception writing document id fb7fed8d1c211f01d54bc0614630aa0b to the index; possible analysis error: Document contains at least one immense term in field="status" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: \\\'[123, 39, 106, 111, 98, 95, 99, 111, 117, 110, 116, 39, 58, 32, 50, 50, 55, 44, 32, 39, 116, 111, 116, 97, 108, 95, 100, 97, 116, 97]...\\\', original message: bytes can be at most 32766 in length; got 80633. Perhaps the document has an indexed string field (solr.StrField) which is too large]\',)',)
Traceback (most recent call last):
File "/usr/lib/ckan/default/bin/paster", line 8, in <module>
sys.exit(run())
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 102, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke
exit_code = runner.run(args)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 236, in run
result = self.command()
File "/data/ckan/env/default/src/ckan/ckan/lib/cli.py", line 554, in command
self.rebuild()
File "/data/ckan/env/default/src/ckan/ckan/lib/cli.py", line 577, in rebuild
quiet=self.options.quiet)
File "/data/ckan/env/default/src/ckan/ckan/lib/search/__init__.py", line 194, in rebuild
defer_commit
File "/data/ckan/env/default/src/ckan/ckan/lib/search/index.py", line 101, in update_dict
self.index_package(pkg_dict, defer_commit)
File "/data/ckan/env/default/src/ckan/ckan/lib/search/index.py", line 300, in index_package
raise SearchIndexError(msg)
ckan.lib.search.common.SearchIndexError: Solr returned an error: (u'Solr responded with an error (HTTP 400): [Reason: Exception writing document id fb7fed8d1c211f01d54bc0614630aa0b to the index; possible analysis error: Document contains at least one immense term in field="status" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: \'[123, 39, 106, 111, 98, 95, 99, 111, 117, 110, 116, 39, 58, 32, 50, 50, 55, 44, 32, 39, 116, 111, 116, 97, 108, 95, 100, 97, 116, 97]...\', original message: bytes can be at most 32766 in length; got 80633. Perhaps the document has an indexed string field (solr.StrField) which is too large]',)