hydrant

filter management

created last month :: modified last month :: 1.65 KB .md

Tools

download raw

  • GET /filter: get the current filter configuration.
  • PATCH /filter: update the filter configuration.

filter mode#

the mode field controls what gets indexed:

modebehaviour
filterauto-discovers and backfills any account whose firehose commit touches a collection matching one of the signals patterns. you can also explicitly track individual repositories via the /repos endpoint regardless of matching signals.
fullindex the entire network. signals are ignored for discovery, but excludes and collections still apply.

fields#

fieldtypedescription
mode"filter" "full"indexing mode (see above).
signalsset updateNSID patterns (e.g. app.bsky.feed.post or app.bsky.*) that trigger auto-discovery in filter mode.
collectionsset updateNSID patterns used to filter which records are stored. if empty, all collections are stored. applies in all modes.
excludesset updateset of DIDs to always skip, regardless of mode. checked before any other filter logic.

set updates#

each set field accepts one of two forms:

  • replace: an array replaces the entire set, eg. ["app.bsky.feed.post", "app.bsky.graph.*"]
  • patch: an object maps items to true (add) or false (remove), eg. {"app.bsky.feed.post": true, "app.bsky.graph.*": false}

NSID patterns#

signals and collections support an optional .* suffix to match an entire namespace:

  • app.bsky.feed.post: exact match only
  • app.bsky.feed.*: matches any collection under app.bsky.feed