10up / elasticpress-autosuggest

DEPRECATED - Functionality merged into core ElasticPress plugin
26 stars 7 forks source link

Error in console - ReferenceError: epas is not defined #10

Open Pezzab opened 7 years ago

Pezzab commented 7 years ago

I'm assuming this error is related to my host setting in my nginx config that also needs appending to the input in my search form (as per this thread).

As my Elasticsearch host is on the same server as my site I have 3 possibilities for a host URL:

http://localhost:9200, http://my-site-ip-address:9200 or http://my-site-url:9200

I've tried all of these with no luck though I notice the code mentioned in the link above referring to elasticpress-autosuggest.js is slightly different to the current version e.g.

var esHost = window.location.protocol + "//" + esServer + '/es-search/';

Does not exist in the current .js file

Pezzab commented 7 years ago

OK I've managed to stop the error, but I don't seem to be getting any joy using any of the above hosts.

As an aside, I had no idea I needed to go into the ElasticPress dashboard and activate the plugin from there!