Operations

The comparison a filter uses to keep a record, set with the op attribute on a listing-filter or count-filter. Each compares a record’s field to a value, according to the field’s type, so numbers and ISO dates compare in order rather than as text. Every operation is a record in the reference search.

Comparison operators

OperationMatches whenExample
eqthe field equals the valueop="eq" value="published"
nethe field differs from the valueop="ne" value="draft"
ltless than (numbers, ISO dates)op="lt" value="2026-01-01"
lteless than or equalop="lte" value="10"
gtgreater thanop="gt" value="0"
gtegreater than or equalop="gte" value="2026-01-01"
containsthe value appears anywhere in the fieldop="contains" value="caddy"
startsthe field starts with the valueop="starts" value="How"
endsthe field ends with the valueop="ends" value=".md"

An op outside this set is reported against the page and the listing or count, and the site is left unchanged until it is fixed. The same operators serve both a listing and a count.