Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



1.5k

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



1.5k
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.



30.9k

@kenjis

Yeah. After I do your guide to it working

Thanks



1.0k
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