YousefED / ElasticUI

AngularJS directives for Elasticsearch
http://www.elasticui.com
Other
526 stars 138 forks source link

Error Unknown provider: euiHostProvider #78

Open iamstoick opened 8 years ago

iamstoick commented 8 years ago

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?

YousefED commented 8 years ago

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.

SthPhoenix commented 8 years ago

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

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