inndx/
GitHub

Expression

A condition that keeps a page based on a CEL expression.

A condition decides whether a fetched page is processed and its result kept. Conditions are configured inside a condition step under a pipeline's steps; a single condition step holds a list of conditions. This page documents the expression condition.

The expression condition evaluates a CEL (Common Expression Language) expression and keeps the page only when it returns true.

FieldTypeRequiredDefaultDescription
expressionstringnofalseA CEL expression that must evaluate to a boolean. The page is kept when it is true.

The expression has these variables available: url (the URL broken into its parts), content_type (the response content type), content (the page body), redirects (the list of redirects that were followed), and run_id (the current run identifier).

steps:
  - kind: condition
    params:
      - kind: expression
        params:
          expression: "content_type.subtype == 'html'"

Search docs

Search the Self-host documentation