@opensearch-project/opensearch 2.6.0 → 2.7.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.
package/CHANGELOG.md CHANGED
@@ -10,13 +10,26 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
10
10
  ### Removed
11
11
  ### Fixed
12
12
 
13
+ ## [2.7.0]
14
+ ### Added
15
+ ### Dependencies
16
+ - Bumps `@aws-sdk/types` from 3.523.0 to 3.535.0
17
+ - Bumps `simple-git` from 3.22.0 to 3.24.0
18
+ - Bumps `@types/node` from 20.11.25 to 20.12.5
19
+ - Bumps `@babel/eslint-parser` from 7.23.10 to 7.24.1
20
+ ### Changed
21
+ - Added `search_pipeline` ([716](https://github.com/opensearch-project/opensearch-js/pull/716))
22
+ ### Deprecated
23
+ ### Removed
24
+ ### Fixed
25
+
13
26
  ## [2.6.0]
14
27
  ### Added
15
28
  - Inherit AwsSigV4 in .child ([#725](https://github.com/opensearch-project/opensearch-js/pull/725))
16
29
  ### Dependencies
17
30
  - Bumps `prettier` from 3.1.1 to 3.2.5
18
31
  - Bumps `@aws-sdk/types` from 3.485.0 to 3.523.0
19
- - Bumps `@types/node` from 20.10.7 to 20.11.24
32
+ - Bumps `@types/node` from 20.10.7 to 20.11.25
20
33
  - Bumps `eslint-plugin-prettier` from 5.1.2 to 5.1.3
21
34
  - Bumps `@babel/eslint-parser` from 7.23.3 to 7.23.10
22
35
  - Bumps `semver` from 7.5.1 to 7.6.0
package/api/api/search.js CHANGED
@@ -54,6 +54,7 @@ const acceptedQuerystring = [
54
54
  'q',
55
55
  'routing',
56
56
  'scroll',
57
+ 'search_pipeline',
57
58
  'search_type',
58
59
  'size',
59
60
  'sort',
@@ -97,6 +98,7 @@ const snakeCase = {
97
98
  ignoreThrottled: 'ignore_throttled',
98
99
  allowNoIndices: 'allow_no_indices',
99
100
  expandWildcards: 'expand_wildcards',
101
+ searchPipeline: 'search_pipeline',
100
102
  searchType: 'search_type',
101
103
  _sourceExcludes: '_source_excludes',
102
104
  _sourceExclude: '_source_exclude',
@@ -148,6 +150,7 @@ const snakeCase = {
148
150
  * @param {string} [params.q] - Query in the Lucene query string syntax
149
151
  * @param {string} [params.routing] - A comma-separated list of specific routing values
150
152
  * @param {string} [params.scroll] - Specify how long a consistent view of the index should be maintained for scrolled search
153
+ * @param {string} [params.search_pipeline] - Customizable sequence of processing stages applied to search queries.
151
154
  * @param {string} [params.search_type] - Search operation type (options: query_then_fetch, dfs_query_then_fetch)
152
155
  * @param {number} [params.size] - Number of hits to return (default: 10)
153
156
  * @param {string} [params.sort] - A comma-separated list of <field>:<direction> pairs
@@ -1516,6 +1516,7 @@ export interface Search<T = RequestBody> extends Generic {
1516
1516
  q?: string;
1517
1517
  routing?: string | string[];
1518
1518
  scroll?: string;
1519
+ search_pipeline?: string;
1519
1520
  search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1520
1521
  size?: number;
1521
1522
  sort?: string | string[];
package/api/types.d.ts CHANGED
@@ -935,6 +935,7 @@ export interface SearchRequest extends RequestBase {
935
935
  request_cache?: boolean;
936
936
  routing?: Routing;
937
937
  scroll?: Time;
938
+ search_pipeline?: string;
938
939
  search_type?: SearchType;
939
940
  stats?: string[];
940
941
  stored_fields?: Fields;
@@ -973,6 +974,7 @@ export interface SearchRequest extends RequestBase {
973
974
  query?: QueryDslQueryContainer;
974
975
  rescore?: SearchRescore | SearchRescore[];
975
976
  script_fields?: Record<string, ScriptField>;
977
+ search_pipeline?: Record<string, any>;
976
978
  search_after?: (integer | string)[];
977
979
  size?: integer;
978
980
  slice?: SlicedScroll;
package/guides/msearch.md CHANGED
@@ -18,7 +18,7 @@ await client.bulk({
18
18
  ],
19
19
  });
20
20
 
21
- await client.index.refresh({ index: 'movies' });
21
+ await client.indices.refresh({ index: 'movies' });
22
22
  ```
23
23
 
24
24
  # Multi Search API
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  }
30
30
  },
31
31
  "homepage": "https://www.opensearch.org/",
32
- "version": "2.6.0",
32
+ "version": "2.7.0",
33
33
  "versionCanary": "7.10.0-canary.6",
34
34
  "keywords": [
35
35
  "opensearch",