Title: Server URL
Last modified: August 20, 2016

---

# Server URL

 *  Resolved [SecureFreak](https://wordpress.org/support/users/securefreak/)
 * (@securefreak)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/)
 * What do you put in here if we have our own Elastic Search instance?
 * [http://wordpress.org/extend/plugins/fantastic-elasticsearch/](http://wordpress.org/extend/plugins/fantastic-elasticsearch/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * (@parisholley)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391623)
 * I haven’t tested using a hostname/port, but it would be simple to add. I will
   go through tonight and try with local instance and put up a change.
 *  Plugin Author [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * (@parisholley)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391625)
 * That being said, are you able to still test with your own server? From what I
   understand, you can just put
 * [http://myserver:8080/](http://myserver:8080/)
 * the plugin will then append the index name to be
 * [http://myserver:8080/index/](http://myserver:8080/index/)
 * and the API will be consistent with what hosted services provide. ElasticSearch
   is accessed using a restful protocol, so it should be work the same even with
   your own instance.
 *  Thread Starter [SecureFreak](https://wordpress.org/support/users/securefreak/)
 * (@securefreak)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391725)
 * Still doesn’t work.
 *     ```
       [Fri Jan 25 22:11:25.862630 2013] [:error] [pid 26549] [client 68.53.229.176:63332] PHP Warning:  Invalid argument supplied for foreach() in /home/aircraft/www/wp-content/plugins/fantastic-elasticsearch/lib/nhp/options/options.php on line 257, referer: http://www.aircraftincidents.com/wp-admin/plugins.php
       [Fri Jan 25 22:11:34.331262 2013] [:error] [pid 27327] [client 68.53.229.176:63335] PHP Warning:  Invalid argument supplied for foreach() in /home/aircraft/www/wp-content/plugins/fantastic-elasticsearch/lib/nhp/options/options.php on line 257, referer: http://www.aircraftincidents.com/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=
       [Fri Jan 25 22:11:34.350329 2013] [:error] [pid 27327] [client 68.53.229.176:63335] PHP Warning:  Invalid argument supplied for foreach() in /home/aircraft/www/wp-content/plugins/fantastic-elasticsearch/lib/nhp/options/options.php on line 690, referer: http://www.aircraftincidents.com/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=
       [Fri Jan 25 22:11:34.352320 2013] [:error] [pid 27327] [client 68.53.229.176:63335] PHP Warning:  Invalid argument supplied for foreach() in /home/aircraft/www/wp-content/plugins/fantastic-elasticsearch/lib/nhp/options/options.php on line 771, referer: http://www.aircraftincidents.com/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=
       [Fri Jan 25 22:12:34.254214 2013] [:error] [pid 26539] [client 68.53.229.176:63431] PHP Warning:  Invalid argument supplied for foreach() in /home/aircraft/www/wp-content/plugins/fantastic-elasticsearch/lib/nhp/options/options.php on line 257, referer: http://www.aircraftincidents.com/wp-admin/admin.php?page=elastic_search
       [Fri Jan 25 22:12:34.270665 2013] [:error] [pid 26539] [client 68.53.229.176:63431] PHP Fatal error:  Class 'Elastica_Client' not found in /home/aircraft/www/wp-content/plugins/fantastic-elasticsearch/admin/sections/server-settings.php on line 12, referer: http://www.aircraftincidents.com/wp-admin/admin.php?page=elastic_search
       ```
   
 *  Thread Starter [SecureFreak](https://wordpress.org/support/users/securefreak/)
 * (@securefreak)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391726)
 * If I enable the search and leave everything else blank it works. If I try to 
   fill out the server url it breaks.
 *  Thread Starter [SecureFreak](https://wordpress.org/support/users/securefreak/)
 * (@securefreak)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391727)
 * Server URL breaks it. It is the only one that breaks it when i put something 
   in there. All other fields work. [http://localhost:8080/](http://localhost:8080/)
   does not work.
 *  Plugin Author [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * (@parisholley)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391733)
 * Sorry, I really don’t know what else to do at this point. If you would like to
   debug it and submit a patch I will be glad to add. elasticsearch.php contains
   a spl_autoload_register call that you should be able to put some echo statements
   in and see if for some reason the path its attempting to lookup is invalid.
 *  Plugin Author [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * (@parisholley)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391735)
 * i was able to reproduce this problem on one of my servers, will update soon as
   i get a fix in
 *  Plugin Author [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * (@parisholley)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391736)
 * this is fixed in 1.1.1, the issue was lib/elastica needs to be lib/Elastica, 
   on my machine the case didn’t matter
 *  Thread Starter [SecureFreak](https://wordpress.org/support/users/securefreak/)
 * (@securefreak)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391742)
 * Can you please do some testing to see what is needed to get this working for 
   a Elastic Search localhost setting? I have tried a few urls but all of them fail
   to connect.
 *  Plugin Author [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * (@parisholley)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391743)
 * if you have downloaded elasticsearch and just ran it out the box, it will be 
   by default “[http://localhost:9200/&#8221](http://localhost:9200/&#8221);.
 * You need to also create the index first like so
 * “curl -XPUT [http://localhost:9200/myindexname/&#8221](http://localhost:9200/myindexname/&#8221);
 *  Thread Starter [SecureFreak](https://wordpress.org/support/users/securefreak/)
 * (@securefreak)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391758)
 * Thanks, that got it up and running. Indexing over 150,000 posts now. Going to
   take a bit.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Server URL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fantastic-elasticsearch_608f2e.svg)
 * [Fantastic ElasticSearch](https://wordpress.org/plugins/fantastic-elasticsearch/)
 * [Support Threads](https://wordpress.org/support/plugin/fantastic-elasticsearch/)
 * [Active Topics](https://wordpress.org/support/plugin/fantastic-elasticsearch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fantastic-elasticsearch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fantastic-elasticsearch/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [SecureFreak](https://wordpress.org/support/users/securefreak/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/server-url/#post-3391758)
 * Status: resolved