Skip to content

Releases: Okanjo/okanjo-app-elastic

v5.2.1

29 Mar 17:12

Choose a tag to compare

Use registerServiceConnector instead of directly pushing service connectors

v5.2.0

19 Mar 19:55

Choose a tag to compare

Updated okanjo-app to latest

v5.0.0

19 Mar 19:06

Choose a tag to compare

Node v16 Update!

  • Updated okanjo-app to v3

v4.1.1

31 May 18:08

Choose a tag to compare

Fixed typo in peer deps

v4.1.0

30 May 19:41

Choose a tag to compare

Added ensureTemplatedIndex helper method

v4.0.0

30 May 17:50

Choose a tag to compare

Updated to use new elasticsearch js client!

Breaking Changes:

  • The ElasticSearch Client module is now a peer dependency. You must add this module yourself based on the version of ElasticSearch you are using.
  • Configuration structure and options have changed due to the new underlying client
  • Service constructor params (config, index) are now required, and do not have implicit app.config defaults.
  • All service methods now return a Promise, so they can be awaited. They no longer take callbacks.
  • All service methods take options where applicable. They are passed through to the underlying api request.
  • Ensure-index related functionality has been removed. You should handle this yourself. (e.g. if(!exists()) { create() }). You should probably be using index templates/aliases by now, so this functionality isn't worth maintaining.

New Functionality

  • The config argument of the ElasticService constructor can be an instance of the ElasticSearch Client. This is useful if you wish to create multiple ElasticService instance for various indices but do not want to duplicate connection clients.
  • All service methods that operate on an index use the ElasticService's configured index name and schema by default. They all can be overridden in their respective options arguments.

v3.0.1

30 May 17:49

Choose a tag to compare

Fixed an issue with putTemplates not working with elastic 5.x

v3.0.0

30 May 17:48

Choose a tag to compare

Enhancements to make template-based index systems work better

  • Added better config structure in test/config.js, splitting connection from index definitions
  • elastic.create now takes optional options, which let it create indices with overrideable name and schema, useful for creating template-based indices
  • elastic.putTemplate now takes a required index_patterns param, so patterns can be setup in environment config instead of hard coded (breaking)
  • Updated docs

v2.0.0

30 May 17:48

Choose a tag to compare

Elasticsearch 6.x Support

  • Updated to support 6.x (tested against 6.5.3)
  • Added index template helper functions
  • Moved index config out of connection details, so connection object can be reused.

v1.0.1

29 Mar 20:02

Choose a tag to compare

  • Updated the Elastic dependency to support 5.2 api bug fixes