Zoekt search returns 400 http status code for some searches

What does this MR do and why?

This merge request adds a new "regex" search option to GitLab's code search functionality. The changes update the API documentation to include this new parameter that allows users to perform regular expression searches when doing exact code searches. The update also removes one test file from a code quality exclusion list and fixes some formatting issues in the API specification files. Additionally, the documentation clarifies that when the "exclude_forks" and "regex" options aren't explicitly set, the system will exclude forked projects and use regular expressions by default. A note was added warning users that Elasticsearch search syntax may not work properly with exact code search and recommends using regular expressions instead.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #521686 (closed)

Edited by Ravi Kumar

Merge request reports

Loading