ReadonlynameThe name of the store (e.g. 'mongodb', 'redis', 'dynamodb')
ReadonlylibraryThe client library being used
Returns the underlying @elastic/elasticsearch client for anything not wrapped here.
Create an index, optionally with mappings/settings/aliases.
Delete an index. Resolves without error if the index doesn't exist.
Whether an index exists.
Get the field mappings for an index.
Add/update field mappings on an existing index. Mapping updates are additive - existing field mappings cannot be changed, only new fields added.
Get an index's settings.
Update dynamic index settings (e.g. number_of_replicas, refresh_interval). Static settings like number_of_shards require closing the index first (not wrapped here - use getClient()).
Refresh an index so recently-written documents become visible to search immediately, rather than waiting for the automatic refresh interval.
Index (create or overwrite) a document. Omit id to let Elasticsearch
auto-generate one. Returns the assigned _id.
Get a document by ID. Returns null if it doesn't exist.
Whether a document exists.
Partially update a document by merging partial into the stored
_source. Pass options.upsert to insert that document if id
doesn't already exist yet. Throws EmptyResultError if the document
doesn't exist and no upsert was provided.
Delete a document by ID. Returns true if a document was deleted,
false if it didn't exist (rather than throwing, since "already
gone" is a common, non-exceptional outcome for a delete).
Run a batch of index/create/update/delete operations in a single
request. Unlike a SQL transaction, this is not atomic - each item
succeeds or fails independently; check result.errors and each
item's error field rather than assuming all-or-nothing.
Convenience wrapper around bulk() for indexing many documents into one index at once.
Convenience wrapper around bulk() for deleting many documents from one index at once.
Run a Query DSL search (match/term/bool/range/etc.) against
one or more indices (comma-separated, or a wildcard pattern). Supports
from/size pagination, sort, and named aggs.
Count documents matching a query (or all documents, if query is omitted) without fetching them.
Optionalquery: QueryDslQueryContainerPoint an alias at an index, creating the alias if it doesn't exist.
Remove an alias from an index.
List the indices an alias currently points at.
Atomically repoint an alias from one index to another - the standard zero-downtime reindex pattern (build the new index, then swap the alias in one request so readers never see a moment with no index behind the alias).
ElasticsearchStorewraps the official@elastic/elasticsearchv9 client and exposes index management, document CRUD (single + bulk), Query-DSL search, and alias management as a typed, promise-based API.