我正在使用Elasticsearch在我的magento网站中进行搜索。
我已经在服务器上安装了 flex 服务器,但是由于安全原因,
Akamai已阻止了:9200端口。
我与Akamai进行了交谈,他们说您可以使用:8080端口运行 flex 搜索。
我尝试通过更改elastica库以及http和非阻塞tcp中的默认端口来进行尝试。
但是,即使我的日志文件中没有任何错误,它仍然无法正常工作。
请提出我们如何可以实现相同的
以下是我引用的一些发现。
http://www.elasticsearch.org/guide/en/elasticsearch/client/javascript-api/current/host-reference.html
https://github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch-transport
我也修改了path.conf。如下所示:
bin/elasticsearch -f -Des.path.conf=/path/to/config/dir
这将读取/path/to/config/dir/elasticsearch.yml和/path/to/config/dir/elasticsearch.json。
但是我仍然看不到我的情况下的输出。
最佳答案
我相信您将需要更改配置文件,可以在ES_HOME / config文件夹下找到elasticsearch配置文件。
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html
您将需要更改“http.port”
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-http.html#_settings_2
关于php - 在8080端口上使用Magento进行 Elasticsearch ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25511668/