# elasticsearch-simple-api

> Elasticsearch Simple Api

Latest version **0.0.1** (published 2015-10-22) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install elasticsearch-simple-api
pnpm add elasticsearch-simple-api
yarn add elasticsearch-simple-api
bun add elasticsearch-simple-api
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-10-22 |
| First published | 2015-10-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mikel Del Tio |
| Maintainers | mikeldeltio |
| Keywords | elasticsearch, api |

## Links

- npm: https://www.npmjs.com/package/elasticsearch-simple-api
- npm.io page: https://npm.io/package/elasticsearch-simple-api

## Dependencies (2)

- [elasticsearch](https://npm.io/package/elasticsearch.md) *
- [node-parallel](https://npm.io/package/node-parallel.md) *

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2015-10-22

## README

# Elasticsearch-Simple-Api for Node

This is a Node.js module that I developed while I was working on a small WEB project with Elasticsearch and facilitated me the use of this technology.

#Functions
<ul>
<li><b>addDocument</b> (index, type, document, callback)</li>
<li><b>addDocumentWithId</b>  (index, type, document, callback)</li>
<li><b>addMultipleDocuments</b>  (index, type, documentsArray, callback)</li>
<li><b>addMultipleDocumentsWithId</b> (index, type, documentsArray, callback)</li>
<li><b>updateDocument</b>  (index, type, id, document, callback)</li>
<li><b>deleteDocument</b>  (index, type, id, callback)</li>
<li><b>getDocumentById</b>  (index, type, id, callback)</li>
<li><b>getDocumentByField</b>  (index, type, fieldName, fieldValue, callback)</li>
<li><b>getDocumentsByName</b>  (index, name, callback)</li>
<li><b>getDocumentsByType</b>  (index, type, callback) </li>
<li><b>deleteIndex</b> (index, callback)</li>
<li><b>deleteMultipleIndexes</b> (indexesArray, callback) </li>
</ul>

#Example

First of all, import the module:
```
var esa = requiere('elasticsearch-simple-api');
```

Call the function:

```
sea.addMultipleDocuments(index, type, document, function (err,result){
	if (error!= undefined)
		console.log('Error: ' + error);
	else
		console.log('OK');
});
```

---
_Source: https://npm.io/package/elasticsearch-simple-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
