elasticlink 1.0.0-beta.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +74 -31
  2. package/dist/index.cjs +1528 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +1890 -0
  5. package/dist/index.d.cts.map +1 -0
  6. package/dist/index.d.ts +1889 -20
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +1474 -18
  9. package/dist/index.js.map +1 -0
  10. package/package.json +27 -21
  11. package/dist/aggregation.builder.d.ts +0 -6
  12. package/dist/aggregation.builder.d.ts.map +0 -1
  13. package/dist/aggregation.builder.js +0 -81
  14. package/dist/aggregation.types.d.ts +0 -258
  15. package/dist/aggregation.types.d.ts.map +0 -1
  16. package/dist/aggregation.types.js +0 -6
  17. package/dist/bulk.builder.d.ts +0 -29
  18. package/dist/bulk.builder.d.ts.map +0 -1
  19. package/dist/bulk.builder.js +0 -51
  20. package/dist/bulk.types.d.ts +0 -47
  21. package/dist/bulk.types.d.ts.map +0 -1
  22. package/dist/bulk.types.js +0 -6
  23. package/dist/field.helpers.d.ts +0 -241
  24. package/dist/field.helpers.d.ts.map +0 -1
  25. package/dist/field.helpers.js +0 -333
  26. package/dist/field.types.d.ts +0 -348
  27. package/dist/field.types.d.ts.map +0 -1
  28. package/dist/field.types.js +0 -6
  29. package/dist/index-management.builder.d.ts +0 -38
  30. package/dist/index-management.builder.d.ts.map +0 -1
  31. package/dist/index-management.builder.js +0 -69
  32. package/dist/index-management.types.d.ts +0 -136
  33. package/dist/index-management.types.d.ts.map +0 -1
  34. package/dist/index-management.types.js +0 -6
  35. package/dist/mapping.builder.d.ts +0 -53
  36. package/dist/mapping.builder.d.ts.map +0 -1
  37. package/dist/mapping.builder.js +0 -39
  38. package/dist/mapping.types.d.ts +0 -200
  39. package/dist/mapping.types.d.ts.map +0 -1
  40. package/dist/mapping.types.js +0 -6
  41. package/dist/multi-search.builder.d.ts +0 -23
  42. package/dist/multi-search.builder.d.ts.map +0 -1
  43. package/dist/multi-search.builder.js +0 -48
  44. package/dist/multi-search.types.d.ts +0 -50
  45. package/dist/multi-search.types.d.ts.map +0 -1
  46. package/dist/multi-search.types.js +0 -6
  47. package/dist/query.builder.d.ts +0 -4
  48. package/dist/query.builder.d.ts.map +0 -1
  49. package/dist/query.builder.js +0 -329
  50. package/dist/query.types.d.ts +0 -468
  51. package/dist/query.types.d.ts.map +0 -1
  52. package/dist/query.types.js +0 -7
  53. package/dist/settings.presets.d.ts +0 -117
  54. package/dist/settings.presets.d.ts.map +0 -1
  55. package/dist/settings.presets.js +0 -137
  56. package/dist/suggester.builder.d.ts +0 -23
  57. package/dist/suggester.builder.d.ts.map +0 -1
  58. package/dist/suggester.builder.js +0 -51
  59. package/dist/suggester.types.d.ts +0 -90
  60. package/dist/suggester.types.d.ts.map +0 -1
  61. package/dist/suggester.types.js +0 -6
  62. package/dist/vector.types.d.ts +0 -17
  63. package/dist/vector.types.d.ts.map +0 -1
  64. package/dist/vector.types.js +0 -6
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.presets.d.ts","sourceRoot":"","sources":["../src/settings.presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,GAAI,YAAY,OAAO,CAAC,oBAAoB,CAAC,KAAG,oBAInF,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B,KAAK,GACL,MAAM,GACN;IACE,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC,CAAC;AAEN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,KAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAiB7G,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAY,OAAO,CAAC,oBAAoB,CAAC,KAAG,oBAY9E,CAAC"}
@@ -1,137 +0,0 @@
1
- /**
2
- * Index settings presets for common Elasticsearch scenarios.
3
- *
4
- * These are standalone functions that return `IndicesIndexSettings` objects.
5
- * Use them with `indexBuilder().settings()` for index creation, or pass directly
6
- * to the ES `_settings` API for runtime changes.
7
- *
8
- * Typical lifecycle:
9
- * 1. Create index: `indexBuilder().mappings(schema).settings(productionSearchSettings()).build()`
10
- * 2. Before bulk ingest: apply `fastIngestSettings()` via ES `_settings` API
11
- * 3. Perform bulk ingest
12
- * 4. After bulk ingest: apply `productionSearchSettings()` via ES `_settings` API
13
- * 5. Refresh: `POST /index/_refresh`
14
- */
15
- /**
16
- * Balanced production settings for search workloads.
17
- *
18
- * Defaults:
19
- * - `number_of_replicas: 1` — one replica for redundancy
20
- * - `refresh_interval: '5s'` — near-real-time search without excessive refresh overhead
21
- *
22
- * @param overrides - Override or extend any setting. Applied after defaults.
23
- *
24
- * @example
25
- * const index = indexBuilder()
26
- * .mappings(schema)
27
- * .settings(productionSearchSettings())
28
- * .build();
29
- *
30
- * @example
31
- * // With best_compression for disk savings
32
- * productionSearchSettings({ codec: 'best_compression' })
33
- *
34
- * @example
35
- * // Restore production settings after bulk ingest
36
- * await client.indices.putSettings({
37
- * index: 'my-index',
38
- * body: productionSearchSettings(),
39
- * });
40
- * await client.indices.refresh({ index: 'my-index' });
41
- */
42
- export const productionSearchSettings = (overrides) => ({
43
- number_of_replicas: 1,
44
- refresh_interval: '5s',
45
- ...overrides
46
- });
47
- /**
48
- * Generate index sort settings from a field→direction (or full spec) map.
49
- *
50
- * Index-time sorting improves compression (similar values stored together) and
51
- * enables early termination when query sort matches index sort. Combine with
52
- * `trackTotalHits(false)` for fastest sorted queries.
53
- *
54
- * The returned object lives at the top level of `IndicesIndexSettings` — spread it
55
- * directly into a settings object (do NOT wrap it under an `index` key, the
56
- * `@elastic/elasticsearch` client normalises that form).
57
- *
58
- * Pass a bare `'asc' | 'desc'` for simple cases; pass `{ order, mode?, missing? }`
59
- * when you need `mode` (`min`/`max`/`median`/`avg`) or `missing` (`_first`/`_last`).
60
- *
61
- * @param fields - Map of field names to sort direction or full spec.
62
- * @returns A `{ sort: IndicesIndexSegmentSort }` fragment to spread into your settings.
63
- *
64
- * @example
65
- * const index = indexBuilder()
66
- * .mappings(schema)
67
- * .settings({
68
- * ...productionSearchSettings(),
69
- * ...indexSortSettings({ timestamp: 'desc', status: 'asc' }),
70
- * })
71
- * .build();
72
- *
73
- * @example
74
- * indexSortSettings({
75
- * price: { order: 'asc', mode: 'min', missing: '_last' },
76
- * created_at: 'desc'
77
- * })
78
- */
79
- export const indexSortSettings = (fields) => {
80
- const entries = Object.entries(fields);
81
- const normalize = (spec) => (typeof spec === 'string' ? { order: spec } : spec);
82
- const hasAnyMode = entries.some(([, spec]) => typeof spec !== 'string' && spec.mode !== undefined);
83
- const hasAnyMissing = entries.some(([, spec]) => typeof spec !== 'string' && spec.missing !== undefined);
84
- return {
85
- sort: {
86
- field: entries.map(([name]) => name),
87
- order: entries.map(([, spec]) => normalize(spec).order),
88
- ...(hasAnyMode && {
89
- mode: entries.map(([, spec]) => normalize(spec).mode ?? 'min')
90
- }),
91
- ...(hasAnyMissing && {
92
- missing: entries.map(([, spec]) => normalize(spec).missing ?? '_last')
93
- })
94
- }
95
- };
96
- };
97
- /**
98
- * Settings optimized for maximum indexing speed during bulk operations.
99
- *
100
- * Apply via the ES `_settings` API before starting bulk ingest, then revert
101
- * with `productionSearchSettings()` afterward. Do not use these as permanent
102
- * index settings — they trade durability and search availability for speed.
103
- *
104
- * Defaults:
105
- * - `refresh_interval: '-1'` — disables refresh (can improve reindex time by 70%+)
106
- * - `number_of_replicas: 0` — no replication overhead during ingest
107
- * - `translog.durability: 'async'` — async translog for faster writes
108
- * - `translog.sync_interval: '30s'` — less frequent translog sync
109
- *
110
- * @param overrides - Override or extend any setting. Applied after defaults.
111
- * `translog` overrides are deep-merged so individual translog keys can be
112
- * changed without clobbering the other defaults.
113
- *
114
- * @example
115
- * // Apply before bulk ingest via ES client
116
- * await client.indices.putSettings({
117
- * index: 'my-index',
118
- * body: fastIngestSettings(),
119
- * });
120
- *
121
- * @example
122
- * // With custom overrides
123
- * fastIngestSettings({ number_of_shards: 3 })
124
- */
125
- export const fastIngestSettings = (overrides) => {
126
- const { translog, ...rest } = overrides ?? {};
127
- return {
128
- number_of_replicas: 0,
129
- refresh_interval: '-1',
130
- translog: {
131
- durability: 'async',
132
- sync_interval: '30s',
133
- ...translog
134
- },
135
- ...rest
136
- };
137
- };
@@ -1,23 +0,0 @@
1
- /**
2
- * Suggester builder
3
- * Provides query suggestions, phrase corrections, and autocomplete functionality
4
- */
5
- import type { FieldTypeString } from './index-management.types.js';
6
- import type { MappingsSchema } from './mapping.types.js';
7
- import { SuggesterBuilder, SuggesterState } from './suggester.types.js';
8
- /**
9
- * Creates a suggester builder
10
- * @returns SuggesterBuilder instance
11
- */
12
- export declare const createSuggesterBuilder: <M extends Record<string, FieldTypeString>>(state?: SuggesterState) => SuggesterBuilder<M>;
13
- /**
14
- * Factory function to create a new suggester builder
15
- * @example
16
- * ```typescript
17
- * const suggestions = suggest(productMappings)
18
- * .term('name-suggestions', 'laptop', { field: 'name', size: 5 })
19
- * .build();
20
- * ```
21
- */
22
- export declare const suggest: <M extends Record<string, FieldTypeString>>(_schema: MappingsSchema<M>) => SuggesterBuilder<M>;
23
- //# sourceMappingURL=suggester.builder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"suggester.builder.d.ts","sourceRoot":"","sources":["../src/suggester.builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EAC9E,QAAO,cAAmB,KACzB,gBAAgB,CAAC,CAAC,CAmCnB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,wBAChE,CAAC"}
@@ -1,51 +0,0 @@
1
- /**
2
- * Suggester builder
3
- * Provides query suggestions, phrase corrections, and autocomplete functionality
4
- */
5
- /**
6
- * Creates a suggester builder
7
- * @returns SuggesterBuilder instance
8
- */
9
- export const createSuggesterBuilder = (state = {}) => ({
10
- term: (name, text, options) => {
11
- return createSuggesterBuilder({
12
- ...state,
13
- [name]: {
14
- text,
15
- term: options
16
- }
17
- });
18
- },
19
- phrase: (name, text, options) => {
20
- return createSuggesterBuilder({
21
- ...state,
22
- [name]: {
23
- text,
24
- phrase: options
25
- }
26
- });
27
- },
28
- completion: (name, prefix, options) => {
29
- return createSuggesterBuilder({
30
- ...state,
31
- [name]: {
32
- prefix,
33
- completion: options
34
- }
35
- });
36
- },
37
- // eslint-disable-next-line functional/functional-parameters
38
- build: () => ({
39
- suggest: state
40
- })
41
- });
42
- /**
43
- * Factory function to create a new suggester builder
44
- * @example
45
- * ```typescript
46
- * const suggestions = suggest(productMappings)
47
- * .term('name-suggestions', 'laptop', { field: 'name', size: 5 })
48
- * .build();
49
- * ```
50
- */
51
- export const suggest = (_schema) => createSuggesterBuilder();
@@ -1,90 +0,0 @@
1
- /**
2
- * Type definitions for Elasticsearch Suggesters
3
- * Derived from official @elastic/elasticsearch types for accuracy and completeness.
4
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html
5
- */
6
- import type { SearchTermSuggester, SearchPhraseSuggester, SearchCompletionSuggester, SearchDirectGenerator, SearchPhraseSuggestCollate, SearchSmoothingModelContainer, SearchCompletionContext } from '@elastic/elasticsearch/lib/api/types';
7
- /**
8
- * Phrase suggester direct-generator config — re-exported from official @elastic/elasticsearch types.
9
- * Used in `PhraseSuggesterOptions.direct_generator`.
10
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#phrase-suggester
11
- */
12
- export type PhraseSuggestDirectGenerator = SearchDirectGenerator;
13
- /**
14
- * Phrase suggester collate config — re-exported from official @elastic/elasticsearch types.
15
- * Used in `PhraseSuggesterOptions.collate` to run a query against each candidate phrase.
16
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#_collate
17
- */
18
- export type PhraseSuggestCollate = SearchPhraseSuggestCollate;
19
- /**
20
- * Phrase suggester smoothing-model container — re-exported from official @elastic/elasticsearch types.
21
- * Used in `PhraseSuggesterOptions.smoothing`.
22
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#_smoothing_models
23
- */
24
- export type PhraseSuggestSmoothingModel = SearchSmoothingModelContainer;
25
- /**
26
- * Completion suggester context — re-exported from official @elastic/elasticsearch types.
27
- * Used in `CompletionSuggesterOptions.contexts`.
28
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/suggester-context.html
29
- */
30
- export type CompletionSuggestContext = SearchCompletionContext;
31
- import type { FieldTypeString } from './index-management.types.js';
32
- import type { TextFields, KeywordFields, CompletionFields } from './mapping.types.js';
33
- /**
34
- * Options for term suggester — mirrors the official `SearchTermSuggester` type.
35
- * `field`, `text`, and `prefix` are omitted because they are supplied by the builder
36
- * as explicit arguments (`field` is re-added below, narrowed to the mapping schema).
37
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#term-suggester
38
- */
39
- export type TermSuggesterOptions<M extends Record<string, FieldTypeString>> = Omit<SearchTermSuggester, 'field' | 'text' | 'prefix'> & {
40
- field: (TextFields<M> | KeywordFields<M>) & string;
41
- };
42
- /**
43
- * Options for phrase suggester — mirrors the official `SearchPhraseSuggester` type
44
- * with `field`, `text`, and `prefix` removed (builder-owned).
45
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#phrase-suggester
46
- */
47
- export type PhraseSuggesterOptions<M extends Record<string, FieldTypeString>> = Omit<SearchPhraseSuggester, 'field' | 'text' | 'prefix'> & {
48
- field: (TextFields<M> | KeywordFields<M>) & string;
49
- };
50
- /**
51
- * Options for completion suggester — mirrors the official `SearchCompletionSuggester` type
52
- * with `field`, `text`, and `prefix` removed (builder-owned).
53
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#completion-suggester
54
- */
55
- export type CompletionSuggesterOptions<M extends Record<string, FieldTypeString>> = Omit<SearchCompletionSuggester, 'field' | 'text' | 'prefix'> & {
56
- field: CompletionFields<M> & string;
57
- };
58
- /**
59
- * Suggester state for build output.
60
- *
61
- * The state carries the suggester DSL as Elasticsearch accepts it — options still
62
- * embed `field` internally after the builder writes them, since that is how the
63
- * underlying wire format works. The type-safety benefit lives at the method
64
- * boundary: callers cannot pass a non-existent field to `.term()`/`.phrase()`/`.completion()`.
65
- */
66
- export type SuggesterState = {
67
- [suggesterName: string]: {
68
- text?: string;
69
- prefix?: string;
70
- term?: Omit<SearchTermSuggester, 'text' | 'prefix'>;
71
- phrase?: Omit<SearchPhraseSuggester, 'text' | 'prefix'>;
72
- completion?: Omit<SearchCompletionSuggester, 'text' | 'prefix'>;
73
- };
74
- };
75
- /**
76
- * Suggester builder interface
77
- */
78
- export type SuggesterBuilder<M extends Record<string, FieldTypeString>> = {
79
- /** Term suggester - suggests corrections for individual terms */
80
- term: (name: string, text: string, options: TermSuggesterOptions<M>) => SuggesterBuilder<M>;
81
- /** Phrase suggester - suggests corrections for entire phrases */
82
- phrase: (name: string, text: string, options: PhraseSuggesterOptions<M>) => SuggesterBuilder<M>;
83
- /** Completion suggester - autocomplete functionality */
84
- completion: (name: string, prefix: string, options: CompletionSuggesterOptions<M>) => SuggesterBuilder<M>;
85
- /** Build suggester DSL */
86
- build: () => {
87
- suggest: SuggesterState;
88
- };
89
- };
90
- //# sourceMappingURL=suggester.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"suggester.types.d.ts","sourceRoot":"","sources":["../src/suggester.types.ts"],"names":[],"mappings":"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"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Type definitions for Elasticsearch Suggesters
3
- * Derived from official @elastic/elasticsearch types for accuracy and completeness.
4
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html
5
- */
6
- export {};
@@ -1,17 +0,0 @@
1
- /**
2
- * Type definitions for Elasticsearch vector search and KNN queries
3
- * Derived from official @elastic/elasticsearch types for accuracy and completeness.
4
- * Requires Elasticsearch 8.0+
5
- */
6
- import type { KnnSearch, MappingDenseVectorProperty } from '@elastic/elasticsearch/lib/api/types';
7
- /**
8
- * Options for KNN (k-nearest neighbors) query (excludes 'field' and 'query_vector' which are handled by the builder)
9
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html
10
- */
11
- export type KnnOptions = Omit<KnnSearch, 'field' | 'query_vector'>;
12
- /**
13
- * Options for dense_vector field mapping (excludes 'type' which is always 'dense_vector')
14
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/dense-vector.html
15
- */
16
- export type DenseVectorOptions = Omit<MappingDenseVectorProperty, 'type'>;
17
- //# sourceMappingURL=vector.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vector.types.d.ts","sourceRoot":"","sources":["../src/vector.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElG;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,cAAc,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Type definitions for Elasticsearch vector search and KNN queries
3
- * Derived from official @elastic/elasticsearch types for accuracy and completeness.
4
- * Requires Elasticsearch 8.0+
5
- */
6
- export {};