blob: 8ebbf3e96f7940833fb2111840cc7ad5a79754e8 [file] [log] [blame]
Xin Sund8dd1532017-07-18 17:13:52 -07001= Gerrit Code Review - Searching Projects
2
3[[search-operators]]
4== Search Operators
5
6Operators act as restrictions on the search. As more operators
7are added to the same query string, they further restrict the
8returned results.
9
10[[name]]
11name:'NAME'::
12+
Edwin Kempin5815a782017-10-13 13:53:20 +020013Matches projects that have exactly the name 'NAME'.
14
David Ostrovsky30b0a802019-01-29 20:42:38 +010015[[parent]]
16parent:'PARENT'::
17+
18Matches projects that have 'PARENT' as parent project.
19
Edwin Kempin5815a782017-10-13 13:53:20 +020020[[inname]]
21inname:'NAME'::
22+
23Matches projects that a name part that starts with 'NAME' (case
24insensitive).
25
26[[description]]
27description:'DESCRIPTION'::
28+
29Matches projects whose description contains 'DESCRIPTION', using a
30full-text search.
Xin Sund8dd1532017-07-18 17:13:52 -070031
Patrick Hiesel36de3362018-07-06 10:57:52 +020032[[state]]
33state:'STATE'::
34+
35Matches project's state. Can be either 'active' or 'read-only'.
36
Xin Sund8dd1532017-07-18 17:13:52 -070037== Magical Operators
38
39[[is-visible]]
40is:visible::
41+
42Magical internal flag to prove the current user has access to read
43the projects and all the refs. This flag is always added to any query.
44
45[[limit]]
46limit:'CNT'::
47+
48Limit the returned results to no more than 'CNT' records. This is
49automatically set to the page size configured in the current user's
50preferences. Including it in a web query may lead to unpredictable
51results with regards to pagination.
52
53GERRIT
54------
55Part of link:index.html[Gerrit Code Review]
56
57SEARCHBOX
58---------