Query for values greater or less than another value
You can use >, >=, <, and <= to search for values that are greater than, greater than or equal to, less than, and less than or equal to another value.
| Query | Example |
|---|---|
>n | cats stars:>1000 matches repositories with the word "cats" that have more than 1000 stars. |
>=n | cats topics:>=5 matches repositories with the word "cats" that have 5 or more topics. |
<n | cats size:<10000 matches code with the word "cats" in files that are smaller than 10 KB. |
<=n | cats stars:<=50 matches repositories with the word "cats" that have 50 or fewer stars. |
You can also use range queries to search for values that are greater than or equal to, or less than or equal to, another value.
| Query | Example |
|---|---|
n..* | cats stars:10..* is equivalent to stars:>=10 and matches repositories with the word "cats" that have 10 or more stars. |
*..n | cats stars:*..10 is equivalent to stars:<=10 and matches repositories with the word "cats" that have 10 or fewer stars. |
Query for values between a range
You can use the range syntax n..n to search for values within a range, where the first number n is the lowest value and the second is the highest value.
| Query | Example |
|---|---|
n.. |