Search queries are built of tokens that are separated by spaces. Each token can be of following form:
Syntax | Token type | Description |
---|---|---|
<value> |
anonymous tokens | used for basic filters |
<key>:<value> |
named tokens | used for advanced filters |
sort:<style> |
sort style tokens | used to sort the results |
special:<value> |
special tokens | filters usually tied to the logged in user |
Most of anonymous and named tokens support ranged and composite values that take following form:
a,b,c |
will show things that satisfy either a ,
b or c . |
1.. |
will show things that are equal to or greater than 1. |
..4 |
will show things that are equal to at most 4. |
1..4 |
will show things that are equal to 1, 2, 3 or 4. |
Ranged values can be also supplied by appending -min
or
-max
to the key, for example like this:
score-min:1
.
Date/time values can be of following form:
today
yesterday
<year>
<year>-<month>
<year>-<month>-<day>
Some fields, such as user names, can take wildcards (*
).
All tokens can be negated by prepending them with -
.
Sort style token values can be appended with ,asc
or
,desc
to control the sort direction, which can be also controlled
by negating the whole token.
You can escape special characters such as :
and -
by prepending them with a backslash: \\
.
Searching for posts with following query:
sea -fav-count:8.. type:swf uploader:Pirate
will show flash files tagged as sea, that were liked by seven people at most, uploaded by user Pirate.
Searching for posts with re:zero
will show an error message
about unknown named token.
Searching for posts with re\:zero
will show posts tagged with
re:zero
.