A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://gitlab.com/gitlab-org/technical-writing/docs-gitlab-com/-/merge_requests/1115 below:

Upgrade search UI connector (to 1.24.2) and fix deprecation warning (!1115) · Merge requests · GitLab.org / Technical Writing

Skip to content Upgrade search UI connector (to 1.24.2) and fix deprecation warning What does this MR do and why?

WHAT

[Search UI] `postProcessRequestBodyFn` is deprecated. Please use `interceptSearchRequest` instead.

WHY

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 locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Configure a local GitLab Docs environment.
  2. Check out this branch.
  3. Make sure to run local and make sure no deprecation warnings on console. Also make sure the same in review app.
Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited Aug 12, 2025 by Hiru Fernando

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