Auslan Directory

Search query help

The search field supports some extra syntax for more finegrained control of results. The query is normalized, and there is an implicit logical "and" between all terms. Syntax:

Syntax Description
+name A word preceded by + is interpreted as a tag name. Only resources that have this tag will be included in results.
-name A word preceded by - is interpreted as a negated tag name. Only resources that do not have this tag will be included in results.
+starred / -starred Special tag for resources you have starred.
+marked / -marked Special tag for resources you have marked.
or Logical "or" operator. This only has an effect on keywords as described below; it doesn't change how the tags above are processed.
"quoted text" Text inside quotes that doesn't match any of the above is matched as a phrase - all words, in order.
unquoted text All other unquoted text is processed as search keywords.

Examples

Query Explanation
+starred +video Starred resources with the "video" tag.
-marked history or culture Resources matching history or culture keywords, that you haven't marked. Note that history or -marked culture would have the same results, because the -marked tag is processed separately to the normal keywords.

Technical information

The search query is processed as follows:

  1. The string is converted to lowercase and split on whitespace.
  2. The tags (+name, -name) are parsed out and removed from the query string. These are processed separately to the rest of the query.
  3. The remaining terms are joined back into a space separated string, and passed to the postgresql websearch_to_tsquery function. This query is matched against the title and description fields of the resource.