Code.gov Adapters
A collection of adapters used by Code.gov.
Adapters
Any number of adapters can be added, for any use. Primary adapters will be for Elasticsearch and databases.
Elasticsearch
The primary adapter for Code.gov. This adapter will expose a limited amount of Elasticsearch's API.
- createIndex
- deleteIndex
- indexExists
- indexDocument
- updateDocument
- deleteDocument
- getIndexesForAlias
- initIndexMapping
- initIndexSettings
- search
Install
npm i @code.gov/code-gov-adapters