searches from scratchdb use a pretty neat format.
each requirement is in the format +requirement:"value"
, if you don't include a
requirement it's assumed you mean content
prefix a requirement with +
to require it to be true, -
to require it to be
false and ~
if it should be true, but is not required
Requirement | What it does |
---|---|
username | requires that the resulting posts be by a certain user |
category | requires that the resulting posts be in a category (this does not have to be complete, +category:"Advanced" will match Advanced Topics) |
topic | requires that the resulting posts be from a topic with the id |
title | requires that the resulting posts be from a topic with a topic title (this does not have to be complete, +title:"help" will match anything with help in the title.) |
id | requires that the resulting post has an id |
content | requres that the resulting posts have this in their content |
the most simple way of using this, is to use some query parameters. these cannot be mixed and matched, you can only use one at a time
?user=
will show posts by the user
?topic=
will show posts in a topic by id
?post=
will show a single post by id