YousefED/ElasticUI

Error Unknown provider: euiHostProvider

Opened this issue · 2 comments

I am using the demo and I am getting the below error.
Error: [$injector:unpr] Unknown provider: euiHostProvider <- euiHost <- es angular.js:9778

I changed:

.constant('euiHost', 'http://localhost:9200');

to

elasticsearch-drupal-1', 'http://localhost:9200'

and

<body ng-app="tutorial" eui-index="'CHANGE_TO_INDEX'">

to

<body ng-app="tutorial" eui-index="'elasticsearchindex'">

and

<eui-searchbox field="'title'"></eui-searchbox> <!-- ACTION: change to field to search on -->
                <h3>Single select facet</h3>
                <eui-singleselect field="'body:value'" size="5"></eui-singleselect> <!-- ACTION: change to field to use as facet -->
                <h3>Multi select facet</h3>
                <eui-checklist field="'search_api_url'" size="10"></eui-checklist> <!-- ACTION: change to field to use as facet -->

Are there more parts that I need to change based on my configurations?

Any other errors showing up in the console? Seems like it's not loading the library correctly.

If you can, please share your complete code / fiddle.

In string:
.constant('euiHost', 'http://localhost:9200');

Isn't euiHost a parameter name?
If so, why did you changed it to elasticsearch-drupal-1?