[英]Installation and using elasticsearch php client on Windows Xampp
我從https://www.elastic.co/downloads/elasticsearch下載了elasticsearch-5.1.1.zip
然后使用此命令通過composer下載用於elasticsearch的Elastica A PHP客戶端
作曲家需要ruflin / elastica:dev-master
現在我想打開並進行測試。 當我運行此命令
BIN \\ elasticsearch.bat
我收到此錯誤: 命令的語法不正確。
另一方面,如果我嘗試使用Elastica A PHP客戶端,我會遇到如下錯誤:
致命錯誤:未捕獲Elastica \\ Exception \\ Connection \\ HttpException:無法連接到主機,Elasticsearch下來? 在E:\\ xampp \\ htdocs \\ el \\ vendor \\ ruflin \\ elastica \\ lib \\ Elastica \\ Transport \\ Http.php:180堆棧跟蹤:#0 E:\\ xampp \\ htdocs \\ el \\ vendor \\ ruflin \\ elastica \\ lib \\ Elastica \\ Request.php(171):Elastica \\ Transport \\ Http-> exec(Object(Elastica \\ Request),Array)#1 E:\\ xampp \\ htdocs \\ el \\ vendor \\ ruflin \\ elastica \\ lib \\ Elastica \\ Client.php (662):Elastica \\ Request-> send()#2 E:\\ xampp \\ htdocs \\ el \\ vendor \\ ruflin \\ elastica \\ lib \\ Elastica \\ Client.php(673):Elastica \\ Client-> request('twitter / ','DELETE',Array,Array)#3 E:\\ xampp \\ htdocs \\ el \\ vendor \\ ruflin \\ elastica \\ lib \\ Elastica \\ Index.php(531):Elastica \\ Client-> request('twitter /', 'DELETE',Array,Array)#4 E:\\ xampp \\ htdocs \\ el \\ vendor \\ ruflin \\ elastica \\ lib \\ Elastica \\ Index.php(165):Elastica \\ Index-> request('twitter /','DELETE ')#5 E:\\ xampp \\ htdocs \\ el \\ vendor \\ ruflin \\ elastica \\ lib \\ Elastica \\ Index.php(258):Elastica \\ Index-> delete()#6 E:\\ xampp \\ htdocs \\ el \\ index .php(40):Elastica \\ Index-> create(Array,true)#7 {main}拋出E:\\ xampp \\ htdocs \\ el \\ vendor \\ ruflin \\ elastica \\ lib \\ Elastica \\ Transport \\ Http.php on line 18 0
我的問題是我如何使用elasticsearch-5.1? 我哪里做錯了?
問候。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.