Advanced Search syntax

With Advanced Search, you can perform a thorough search of your entire GitLab instance.

The Advanced Search syntax supports fuzzy or exact search queries with prefixes, boolean operators, and more. Advanced Search uses Elasticsearch’s syntax.

caution
Advanced Search searches default project branches only.
UseDescriptionExample
"Exact search"gem sidekiq"
|Ordisplay | banner
+Anddisplay +banner
-Excludedisplay -banner
*Partialbug error 50*
\Escape\*md
UseDescriptionExample
filename:Filenamefilename:*spec.rb
path:Repository locationpath:spec/workers/
extension:File extension, without the . extension:js
blob:Git object IDblob:998707*

extension and blob return exact matches only.

Examples

ExampleDescription
rails -filename:gemfile.lockShow rails in all files except the gemfile.lock file.
RSpec.describe Resolvers -*builderShow all RSpec.describe Resolvers that don’t start with builder.
bug | (display +banner)Show bug or display and banner.