default constuctor w/ options.
{ endpoint, indexName } is required.
Readonly
_clientProtected
_optionsStatic
Readonly
DECOMPOSED_Static
Readonly
QWERTY_get isLatestOS2
get isOldES6
get isOldES71
get the current options.
get the parsedVersion
get the version from options
Protected
executeProtected
check whether the service version matches the version provided in the options.
only for internal test.
find the index by name
Optional
indexName: stringname of the index
create async generator that yields items queried until last
Elasticsearch Query DSL that defines the search request (e.g., size, query, filters).
Optional
params: ElasticSearchAllParamsparameters including search type, limit, and retry options.
Protected
getProtected
get the root version from client
only for internal test.
Optional
options: { dump?: boolean }Optional
dump?: booleanlist of index
parse version according to Semantic Versioning (SemVer) rules.
A ParsedVersion object or null if parsing fails and throwable is false.
The version string to parse (e.g., "1.2.3", "1.2.3-alpha.1", "1.2.3+build.001").
Optional
options: { throwable?: boolean }Optional configuration for throwable behavior.
Optional
throwable?: booleanPrivate
popullatePrivate
saverun search, and get the formatmted response.
Elasticsearch Query DSL that defines the search request (e.g., size, query, filters).
Optional
searchType: SearchTypetype of search (e.g., 'query_then_fetch', 'dfs_query_then_fetch').
search all until limit (-1 means no-limit)
Elasticsearch Query DSL that defines the search request (e.g., size, query, filters).
Optional
params: ElasticSearchAllParamsparameters including search type, limit, and retry options.
run search and get the raw response.
Elasticsearch Query DSL that defines the search request (e.g., size, query, filters).
Optional
searchType: SearchTypetype of search (e.g., 'query_then_fetch', 'dfs_query_then_fetch').
update item (throw if not exist)
update table set a=1, b=b+2 where id='a1'
0. no of a1
-> 1,2 (created)
item-id
item to update
Optional
increments: Incrementableitem to increase
Optional
options: { maxRetries?: number }(optional) request option of client.
Optional
maxStatic
instancesimple instance maker.
const { client } = ElasticIndexService.instance(endpoint);
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/16.x/configuration.html
service-url
Static
prepareprepare default setting
Optional
replicas?: numberOptional
shards?: numberOptional
timeOptional
version?: stringGenerated using TypeDoc
class:
Elastic6Service
ElasticIndexService
and adds version-specific implementation