We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

ElasticSearch of forum Phalcon

Hi @phalcon

I see forum use ElasticSearch. When I try it then to get some mission

    Elasticsearch\Common\Exceptions\Missing404Exception Object
(
    [message:protected] => {"error":"IndexMissingException[[phosphorum] missing]","status":404}
    [string:Exception:private] => 
    [code:protected] => 404
    [file:protected] => /home/duythien/github/forum/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php
    [line:protected] => 260
    [trace:Exception:private] => Array

My question: You have installing some library such as https://github.com/jprante/elasticsearch-river-jdbc ?

Thanks



2.2k

Did you run scripts/search-tasks.php to build index?



2.2k
Accepted
answer

And config.php has elasticsearch.index, but Phosphorum\Search has hard coded string phosphorum. If you change index name in config.php, it won't work.

We have to fix it to get config.php.



58.4k

@kenjis

Yeah. After I do your guide to it working

Thanks



2.6k
edited Jun '16

I use phalcon/forum to create a local project, locally installed elasticsearch1.7.5. I have run scripts/search-tasks.php, I use mysql, I can not search anything,why? thanks in advanced