The query language used for this server is based on and improves the search syntax currently used
by the Fur Affinity website. Its basic elements are:
-
@<field>
field specifier (e.g. @title
), all database columns
can be searched. Click on the Field menu for a list of the available search fields.
-
()
parentheses, they can be used for better logic operations
-
&
AND logic operator, used between search terms
-
|
OR logic operator, used between search terms
-
!
NOT logic operator, used as prefix of search terms
-
""
quotes, allow searching for literal strings without needing to escape
-
%
match 0 or more characters
-
_
match exactly 1 character
-
^
start of field, when used at the start of a search term, it matches the
beginning of the field
-
$
end of field, when used at the end of a search term, it matches the end of
the field
All other strings are considered search terms.
The search uses the @any
field by default, allowing to do general searches without
specifying a field.
Search terms that are not separated by a logic operator are considered AND terms (i.e.
a b c
-> a & b & c
).
Except for the ID
, AUTHOR
, and USERNAME
fields, all search
terms are searched through the whole content of the
various fields: i.e. @description cat
will match any item whose description field
contains "cat". To match items that contain only "cat" (or start with, end with, etc.), the
%
, _
, ^
, and $
operators need to be used (
e.g. @description ^cat
).
Search terms for ID
, AUTHOR
, and USERNAME
are matched
exactly as they are: i.e. @author tom
will match only items whose author field is
exactly equal to "tom", to match items that contain "tom" the %
, _
,
^
, and $
operators need to be used (e.g. @author %tom%
).
{% if table == "submissions" %}
{% endif %}