Skip to content

Commit

Permalink
docs(datasource-elasticsearch): update readme section (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thenkei authored Nov 20, 2023
1 parent a69a8fb commit 16f3b08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/datasource-elasticsearch/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
The elastic search data source allows importing collections from an elastic search instance.

To make everything work as expected, you need to install the package `@forestadmin-experimental/datasource-elasticsearch`.
To make everything work as expected, you need to install the package `@forestadmin/datasource-elasticsearch`.

Note that:

- It has been developed with version 7 in mind. Support for elastic search v8 will come later.
- Joins are not supported at the moment
- Object (sub-model in models) are not supported at the moment
- Object (sub-model in models) are not fully supported at the moment
- Points are not supported at the moment
- Arrays are not supported out of the box. See the section [`Specifying that a field is an array`](#Tips)


```javascript
const { createAgent } = require('@forestadmin/agent');

const { createElasticsearchDataSource } = require('@forestadmin-experimental/datasource-elasticsearch');
const { createElasticsearchDataSource } = require('@forestadmin/datasource-elasticsearch');

// Create agent and import collections from elastic search
const agent = createAgent(options).addDataSource(
Expand Down

0 comments on commit 16f3b08

Please sign in to comment.