dachcom-digital / pimcore-lucene-search

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

New Install - Pimcore 5 #47

Closed ritunrtc closed 6 years ago

ritunrtc commented 6 years ago

I installed for Pimcore 5 using composer . Activated using extension manager but can't get the crawler to start.

Keep getting error : no valid task iterators defined!

I start the crawler with : php bin/console lucenesearch:crawl -v

Any idea what could be going wrong ?

Thanks!

nahilep commented 6 years ago

I am having the exact same problem. Only thing different is that I am also using the -f option: php bin/console lucenesearch:crawl -f -v

solverat commented 6 years ago

This happens if the bundle is not configured. Please add a configuration file, for example:

lucene_search:
    enabled: true
    sitemap:
        render: false
    fuzzy_search_results: false
    search_suggestion: true
    seeds:
        - 'http://your-domain.dev'
    filter:
        valid_links:
            - '@^http://your-domain.dev.*@i'
    view:
        max_per_page: 10
    crawler:
        content_max_size: 4
        content_start_indicator: '<!-- main-content -->'
        content_end_indicator: '<!-- /main-content -->'
nahilep commented 6 years ago

This helped me to get a little further. Now the next exception pops up:

Warning: file_get_contents(/application/var/bundles/LuceneSearchBundle/state.cnf): failed to open stream: No such file or directory

solverat commented 6 years ago

You should check if there is folder called LuceneSearchBundle in /var/bundles. If not you should check if the bundle has been installed correctly. (apply the lucene search install button in pimcore extension manager maybe..)

nahilep commented 6 years ago

Embarrassing, I was sure I installed it, but you were right. It wasn't installed only activated.

Sorry for that.

ritunrtc commented 6 years ago

Thanks, apart from adding the suggested configuration to /Resources/config/pimcore/config.yml I also had to clear the cache: php bin/console cache:clear --env=dev

ejsenn commented 6 years ago

Hi, first of all - sorry for re-opening but in my case it needs to be :( I'm running pimcore 5, everything works well and I installed lucene using the composer, activated at the extension manager and so on. I placed the lucene config from above example at src/Appbundle/Resources/config/pimcore/config.yml as suggested but if i start a manual crawl on the console I still having the Error "no valid task iterators defined!"

any ideas ? thanks in advance !