Help with Debtags search

This document describes the query syntax supported by the Debtags package search. The syntax is the one of Xapian's QueryParser and is designed to be similar to other web based search engines.

Operators

AND: expression AND expression matches documents which are matched by both of the subexpressions.

OR: expression OR expression matches documents which are matched by either of the subexpressions.

NOT: expression NOT expression matches documents which are matched by only the first subexpression. This can also be written as expression AND NOT expression. NOT expression matches documents which don't match the subexpression.

XOR: expression XOR expression matches documents which are matched by one or other of the subexpressions, but not both. XOR is probably a bit esoteric.

Bracketed expressions

You can control the precedence of the boolean operators using brackets. In the query one OR two AND three the AND takes precedence, so this is the same as one OR (two AND three). You can override the precedence using (one OR two) AND three.

The default precedence from highest to lowest is:

A group of terms with some marked with + and - will match documents containing all of the + terms, but none of the - terms. Terms not marked with + or - contribute towards the document rankings. You can also use + and - on phrases and on bracketed expressions.

Prefixes

tag:tag matches the Debtags tag by tag name. For example: tag:use::editing.

sec:section matches the Debian package section. For example: sec:mail.