unable to configure elasticsearch on WINDOWS 7 .

937 views
Skip to first unread message

Amir Shaheen

unread,
Jul 3, 2012, 3:26:10 AM7/3/12
to elastica-...@googlegroups.com
I have installed Elastica on my machine

Fatal error: Uncaught exception 'Elastica_Exception_Client' with message 'Couldnt connect to host, ElasticSearch down?' in D:\xampp\htdocs\surch\lib\Elastica\Transport\Http.php:117 Stack trace: #0 D:\xampp\htdocs\surch\lib\Elastica\Request.php(213): Elastica_Transport_Http->exec(Array) #1 D:\xampp\htdocs\surch\lib\Elastica\Client.php(379): Elastica_Request->send() #2 D:\xampp\htdocs\surch\lib\Elastica\Index.php(368): Elastica_Client->request('twitter/', 'DELETE', Array, Array) #3 D:\xampp\htdocs\surch\lib\Elastica\Index.php(127): Elastica_Index->request('', 'DELETE') #4 D:\xampp\htdocs\surch\lib\Elastica\Index.php(173): Elastica_Index->delete() #5 D:\xampp\htdocs\surch\index.php(49): Elastica_Index->create(Array, true) #6 {main} thrown in D:\xampp\htdocs\surch\lib\Elastica\Transport\Http.php on line 11

i think my elasticsearch library not setup.
Please help me to work normal with Elastica (elasticsearch)

Nicolas Ruflin

unread,
Jul 3, 2012, 3:34:13 AM7/3/12
to elastica-...@googlegroups.com
Elastica is only the client for elasticsearch. to start elasticsearch, go to elasticsearch.org and download the server

Amir Shaheen

unread,
Jul 3, 2012, 3:56:31 AM7/3/12
to elastica-...@googlegroups.com
I have downloaded it set JAVA_HOME to JRE and classpath to elasticsearch but it seems to not working

Amir Shaheen

unread,
Jul 3, 2012, 4:06:56 AM7/3/12
to elastica-...@googlegroups.com
How can i configure "ElasticSearch Server " on Windows7 for using Elastica

Nicolas Ruflin

unread,
Jul 3, 2012, 4:09:32 AM7/3/12
to elastica-...@googlegroups.com
is elasticsearch running?

if elasticsearch is on the same machine, the default configuration works.

Amir Shaheen

unread,
Jul 3, 2012, 4:16:56 AM7/3/12
to elastica-...@googlegroups.com
yes it is on same machine but not working

Steps:
1- Put elasticsearch directory in a drive
2- Add its path to environment variables
3- Set JAVE_HOME path
4- But when i execute bin/elasticsearch.bat from command line it does not do anything 
D:\elasticsearch\bin\elasticsearch.bat
it shows error
The system cannot find the path specified. 

Nicolas Ruflin

unread,
Jul 3, 2012, 5:59:28 AM7/3/12
to elastica-...@googlegroups.com
ok,as this problem seems to be related to elasticsearch and not elastica, I would recommend you to post in the elasticsearch google group:

Amir Shaheen

unread,
Jul 3, 2012, 6:16:01 AM7/3/12
to elastica-...@googlegroups.com
when i ran the elastica it throws  the exception can u tell me which is missing in the configuration
Fatal error: Uncaught exception 'Elastica_Exception_Client' with message 'Couldnt connect to host, ElasticSearch down?' in D:\xampp\htdocs\surch\lib\Elastica\Transport\Http.php:117 Stack trace: #0 D:\xampp\htdocs\surch\lib\Elastica\Request.php(213): Elastica_Transport_Http->exec(Array) #1 D:\xampp\htdocs\surch\lib\Elastica\Client.php(379): Elastica_Request->send() #2 D:\xampp\htdocs\surch\lib\Elastica\Index.php(368): Elastica_Client->request('twitter/', 'DELETE', Array, Array) #3 D:\xampp\htdocs\surch\lib\Elastica\Index.php(127): Elastica_Index->request('', 'DELETE') #4 D:\xampp\htdocs\surch\lib\Elastica\Index.php(173): Elastica_Index->delete() #5 D:\xampp\htdocs\surch\index.php(49): Elastica_Index->create(Array, true) #6 {main} thrown in D:\xampp\htdocs\surch\lib\Elastica\Transport\Http.php on line 117

Nicolas Ruflin

unread,
Jul 3, 2012, 6:34:52 AM7/3/12
to elastica-...@googlegroups.com
nothing is missing in the config. the problem is, as mentioned before, that the elasticsearch server is not running

Amir Shaheen

unread,
Jul 3, 2012, 8:02:33 AM7/3/12
to elastica-...@googlegroups.com
Now elasticsearch server working. Now how can implement search using elastica that display some results on the screen??

Nicolas Ruflin

unread,
Jul 8, 2012, 12:42:18 AM7/8/12
to elastica-...@googlegroups.com
Hi Amir

Sorry for the delayed answers. I'm traveling at the moment and don't have an internet connection all the time.

Did you check the basic documentation for Elastica?
Reply all
Reply to author
Forward
0 new messages