ReadonlynameThe name of the store (e.g. 'mongodb', 'redis', 'dynamodb')
ReadonlylibraryThe client library being used
Returns the underlying solr-client client for anything not wrapped here.
Add (index) one or more documents, then commit so they become
searchable. Solr buffers adds until a commit, so the two are done
together here for the common "index and see it" case; call add via
getClient() directly if you want to batch many adds before a single
commit.
Run a query. Pass either a raw query object/string (Solr query params,
e.g. 'q=title:solr&rows=10') or a query built by
SolrStore.query. Returns the driver's raw response object
({ responseHeader, response: { numFound, docs, ... } }).
Build a query with the driver's fluent builder (.q(...), .start(...),
.rows(...), .sort(...), ...), when the driver exposes client.query().
Throws if this driver build doesn't provide a builder - construct a raw
query object/string and pass it straight to SolrStore.search in
that case.
Delete a single document by its unique-key value, then commit.
Delete every document matching a Solr query (e.g. 'category:obsolete'), then commit.
Commit buffered writes so they become visible to search.
Optimize the index (merge segments). Optional - not every solr-client
build exposes optimize; throws a DatabaseError if this one doesn't.
SolrStorewraps asolr-clientclient and exposes Solr's document indexing, querying, deletion, and commit/optimize operations as a typed, promise-based API.