diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-20 12:20:27 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-20 12:20:27 +0300 |
commit | 329b00672d014994e7189b24a7c2e65771363152 (patch) | |
tree | d06ac18fac08ece8c2973a3402e99d2f9b2bb6ee /doc/api | |
parent | b60415c2b7deb2dfc8147445bee52022c128d416 (diff) | |
parent | 7357209f91ae4c0b504f47e36220bd04a0e2feca (diff) |
Merge branch 'ce-5024-filename-search' into 'master'
Implement filtering by filename on code search
Closes #43627
See merge request gitlab-org/gitlab-ce!19509
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/search.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/search.md b/doc/api/search.md index 107ddaffa6a..9716f682ace 100644 --- a/doc/api/search.md +++ b/doc/api/search.md @@ -776,6 +776,15 @@ Example response: ### Scope: blobs +Filters are available for this scope: +- filename +- path +- extension + +to use a filter simply include it in your query like so: `a query filename:some_name*`. + +You may use wildcards (`*`) to use glob matching. + ```bash curl --request GET --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/6/search?scope=blobs&search=installation ``` |