Skip to content

A Polymer Element which creates and returns a client connection to an Elasticsearch server.

License

Notifications You must be signed in to change notification settings

DigElements/elastic-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elastic-client

A Polymer Element which creates and returns a client connection to an Elasticsearch server via the standard elasticsearch javascript API. Once a connection is established, the client property can be used by other elements in your application to access the elastic REST API.

Example

<elastic-client
  config='{"host": "http://localhost:9200"}'
  client="{{esclient}}">
</elastic-client>

<elastic-client-search
  client="[[esclient]]"
  index="myindex"
  type="[[indexType]]"
  body='{"query": {"match_all": {}}}'
  results="{{results}}"
  last-error="{{error}}">
</elastic-client-search>

Dependencies

Dependencies are installed using Bower:

npm install -g bower
bower install

Testing

Tests require a local instance of elasticsearch.

Tests are run using web-component-tester:

npm install -g web-component-tester
wct

Demonstration & Documentation

Demonstration and documentation are viewed using polyserve:

npm install -g polyserve
polyserve

About

A Polymer Element which creates and returns a client connection to an Elasticsearch server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages