dachcom-digital / pimcore-lucene-search

Pimcore Website Indexer (powered by Zend Search Lucene)
Other
26 stars 20 forks source link

Cannot start crawl without existing state.cnf #55

Closed dpfaffenbauer closed 6 years ago

dpfaffenbauer commented 6 years ago

If there is no state.cnf, LuceneSearch fails with following error:

invalid state config slot "finished"

This is due to a missing state.cnf. But there is currently no state.cnf, because LuceneSearch support has just been deployed.

aarongerig commented 6 years ago

The same issue for me as well. Is there currently a workaround for this?

dpfaffenbauer commented 6 years ago

@aarongerig Yes: uploading the state.cnf manually and add it to your deployer configuration as shared file. For example, this is my deployer config for LuceneSearch:

set('shared_files', [
    'var/bundles/LuceneSearchBundle/state.cnf'
]);
set('shared_dirs', [
    'var/bundles/LuceneSearchBundle/index',
    'var/bundles/LuceneSearchBundle/site-map'
]);

Its important to share LuceneSearchBundle through different releases, otherwise you would have to re-index on every release.

aarongerig commented 6 years ago

@dpfaffenbauer Thanks, I will try it with that!