Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1469fb30
Commit
1469fb30
authored
Jul 07, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add use case for Advanced Syntax Search
parent
99b3ff55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
doc/user/search/advanced_search_syntax.md
doc/user/search/advanced_search_syntax.md
+16
-2
No files found.
doc/user/search/advanced_search_syntax.md
View file @
1469fb30
...
...
@@ -9,15 +9,28 @@ Use advanced queries for more targeted search results.
## Overview
The Advanced Syntax Search is a subset of the
[
Advanced Global Search
](
advanced_global_search.md
)
,
which you can use to have more specific search results.
The Advanced Syntax Search is a subset of the
[
Advanced Global Search
](
advanced_global_search.md
)
, which you can use if you
want to have more specific search results.
## 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 regular expressions in your query will yield much better
results.
## Using the Advanced Syntax Search
The Advanced Syntax Search supports queries of ranges, wildcards, regular
expressions, fuzziness and much more.
Full details can be found in the
[
Elasticsearch documentation
][
elastic
]
, but
here's a quick guide:
...
...
@@ -29,6 +42,7 @@ here's a quick guide:
*
To group terms together, use parentheses:
`bug | (display +sound)`
*
To match a partial word, use
`*`
:
`bug find_by_*`
*
To find a term containing one of these symbols, use
`\`: `
argument
\-
last
`
*
To limit the results based on the time "created_at:[2012-01-01 TO 2012-12-31]" and other sweet stuff
[
ee
]:
https://about.gitlab.com/gitlab-ee/
[
elastic
]:
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/query-dsl-simple-query-string-query.html#_simple_query_string_syntax
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment