Skip to content

Commit 29dfd74

Browse files
committed
Added search_pipeline to search
Signed-off-by: Theo Truong <theotr@amazon.com>
1 parent 4e615f3 commit 29dfd74

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1212
- Bumps `@babel/eslint-parser` from 7.23.3 to 7.23.10
1313
- Bumps `semver` from 7.5.1 to 7.6.0
1414
### Changed
15+
- Added `search_pipeline`
1516
### Deprecated
1617
### Removed
1718
### Fixed
@@ -227,4 +228,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
227228

228229
### Fixed
229230

230-
- Fix mutability of connection headers ([#291](https://github.com/opensearch-project/opensearch-js/issues/291))
231+
- Fix mutability of connection headers ([#291](https://github.com/opensearch-project/opensearch-js/issues/291))

api/api/search.js

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const acceptedQuerystring = [
5454
'q',
5555
'routing',
5656
'scroll',
57+
'search_pipeline',
5758
'search_type',
5859
'size',
5960
'sort',
@@ -97,6 +98,7 @@ const snakeCase = {
9798
ignoreThrottled: 'ignore_throttled',
9899
allowNoIndices: 'allow_no_indices',
99100
expandWildcards: 'expand_wildcards',
101+
searchPipeline: 'search_pipeline',
100102
searchType: 'search_type',
101103
_sourceExcludes: '_source_excludes',
102104
_sourceExclude: '_source_exclude',
@@ -148,6 +150,7 @@ const snakeCase = {
148150
* @param {string} [params.q] - Query in the Lucene query string syntax
149151
* @param {string} [params.routing] - A comma-separated list of specific routing values
150152
* @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.
151154
* @param {string} [params.search_type] - Search operation type (options: query_then_fetch, dfs_query_then_fetch)
152155
* @param {number} [params.size] - Number of hits to return (default: 10)
153156
* @param {string} [params.sort] - A comma-separated list of <field>:<direction> pairs

0 commit comments

Comments
 (0)