WHAT
@elastic/search-ui-elasticsearch-connector
from 1.23.0
to 1.24.2
.[Search UI] `postProcessRequestBodyFn` is deprecated. Please use `interceptSearchRequest` instead.
interceptSearchRequest
(based off of the warning as well).WHY
postProcessRequestBodyFn
but it was inferred in the way we wrote request params (i.e. (requestBody, requestState, queryConfig)
) here,const connector = new ElasticsearchAPIConnector(
{
cloud: {
id: ELASTIC_CLOUD_ID,
},
index: ELASTIC_INDEX,
apiKey: ELASTIC_KEY,
},
(requestBody, requestState, queryConfig) => {
const updatedRequestBody = buildSearchQuery(
requestBody,
requestState,
queryConfig,
);
return updatedRequestBody;
},
);
Screenshots, screen recordings, or links to review app
No visual changes - only affects searching.
How to set up and validate locallyNumbered steps to set up and validate the change are strongly suggested.
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4