Advanced Syntax Search (STARTER ONLY)

Notes:

NOTE: Note Advanced Global Search (powered by Elasticsearch) is not yet available on GitLab.com. We are working on adding it. Follow this epic for the latest updates.

Use advanced queries for more targeted search results.

Overview

The Advanced Syntax Search is a subset of the Advanced Global Search, which you can use if you want to have more specific search results.

Advanced Global Search only supports searching the default branch.

Use cases

Let's say for example that the product you develop relies on the code of another product that's hosted under some other group.

Since under your GitLab instance there are hosted hundreds of different projects, you need the search results to be as efficient as possible. You have a feeling of what you want to find (e.g., a function name), but at the same you're also not so sure.

In that case, using the advanced search syntax in your query will yield much better results.

The Advanced Syntax Search supports fuzzy or exact search queries with prefixes, boolean operators, and much more.

Full details can be found in the Elasticsearch documentation, but here's a quick guide:

Syntax search filters

The Advanced Syntax Search also supports the use of filters. The available filters are:

To use them, simply add them to your query in the format <filter_name>:<value> without any spaces between the colon (:) and the value.

Examples: