elastic-tiny-client
v0.1.4
Published
[](https://github.com/samuelgja/elastic-tiny-client/actions/workflows/build.yml) [
const indexResult = await client.index({
index: 'my-index',
body: {
title: 'test',
},
})
const result = await client.search({
index: 'my-index',
body: {
query: {
match: {
title: 'test',
},
},
},
})
const deleteResult = await client.delete({
index: 'my-index',
id: indexResult.body._id,
})Basic api are taken from elasticsearch-rest-api-docs. There are still some parts missing, so PR's are welcome 😎.
