'Error while executing data provider - Pimcore DynamicSearch
I have migrated to Pimcore X incl. DynamicSearch, DS Lucene and Trinity (~2.0.0) bundles. If we run the command "bin/console dynamic-search:run -v" which should trigger indexing the documents, we get the following result/error message:
[2022-02-01T16:29:53.554316+01:00] [workflow] [websitedocs] ERROR: Error while executing data provider. Error was: Error while executing processing index document (index) via provider. Error was: "DynamicSearchBundle\Exception\ProviderException::__construct(): Argument #3 ($previousException) must be of type ?Exception, Error given, called in /var/www/clients/client1/web1/web/vendor/dachcom-digital/dynamic-search-index-provider-lucene/src/DsLuceneBundle/Provider/LuceneIndexProvider.php on line 114". [Line: 201, File /var/www/clients/client1/web1/web/vendor/dachcom-digital/dynamic-search/src/DynamicSearchBundle/Processor/ResourceModificationProcessor.php]. FailOver has been initiated
[2022-02-01T16:29:53.554440+01:00] [trinity_data] [websitedocs] DEBUG: executing provider emergency shutdown
[2022-02-01T16:29:53.554549+01:00] [lucene] [websitedocs] DEBUG: executing provider emergency shutdown
Our database_name in the config (index_provider) is "websitedocs".
dynamic_search:
enable_pimcore_element_listener: true
context:
websitedocs:
index_provider:
service: 'lucene'
options:
database_name: 'websitedocs'
analyzer:
# forced_locale: de
filter:
stemming:
on_index_time: true
on_query_time: true
locale_aware: false
class: '\DsLuceneBundle\Lucene\Filter\Stemming\SnowBallStemmingFilter'
stop_words:
on_index_time: true
on_query_time: true
libraries:
- locale: de
file: '%%dsl_stop_words_lib_path%%/de'
- locale: en
file: '%%dsl_stop_words_lib_path%%/en'
data_provider:
service: 'trinity_data'
normalizer:
service: 'trinity_localized_resource_normalizer'
options:
locales: ['de']
options:
always:
index_object: false
index_document: true
index_asset: false
output_channels:
autocomplete:
service: 'lucene_autocomplete'
suggestions:
service: 'lucene_suggestions'
normalizer:
service: 'lucene_document_key_value_normalizer'
options:
phrased_search: true
fuzzy_search: true
wildcard_search: true
search:
service: 'lucene_search'
use_frontend_controller: true
normalizer:
service: 'lucene_document_key_value_normalizer'
options:
phrased_search: true
fuzzy_search: true
wildcard_search: true
paginator:
enabled: true
max_per_page: 50
With Pimcore 6.9 and DS (0.7) the search did work. Does anyone know what is causing this error or what we could do to solve the problem? Thanks for any help.
Upate (Configuration adjusted):
dynamic_search:
enable_pimcore_element_listener: true
context:
websitedocs:
index_provider:
service: 'lucene'
options:
database_name: 'websitedocs'
# analyzer:
# # forced_locale: de
# filter:
# stemming:
# on_index_time: true
# on_query_time: true
# locale_aware: false
# class: '\DsLuceneBundle\Lucene\Filter\Stemming\SnowBallStemmingFilter'
# stop_words:
# on_index_time: true
# on_query_time: true
# libraries:
# - locale: de
# file: '%%dsl_stop_words_lib_path%%/de'
# - locale: en
# file: '%%dsl_stop_words_lib_path%%/en'
data_provider:
service: 'trinity_data'
normalizer:
service: 'trinity_localized_resource_normalizer'
# options:
# locales: ['de']
options:
always:
index_object: false
index_document: true
index_asset: false
output_channels:
autocomplete:
service: 'lucene_autocomplete'
suggestions:
service: 'lucene_suggestions'
normalizer:
service: 'lucene_document_key_value_normalizer'
options:
phrased_search: true
fuzzy_search: true
wildcard_search: true
search:
service: 'lucene_search'
use_frontend_controller: true
normalizer:
service: 'lucene_document_key_value_normalizer'
options:
phrased_search: true
fuzzy_search: true
wildcard_search: true
paginator:
enabled: true
max_per_page: 50
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|