Skip to main content

Paligo API

Search operators

Each search request must include the target resource, like 'documents' or 'forks'. In addition to this, you can include optional search parameters to filter the results. The main part of the search parameter is the operator.

The operators describe what kind of comparison is to be done. It could be a simple string comparison, a comparison of dates, or checking if a list contains a certain value.

The following operators are currently supported:

  • equals

    The equals operator can be used to compare the value of a certain property with a given value.

  • has

    The has operator can be used to check if a property contains a given value.

  • before

    The after operator can be used to check if a time property occurs before a given unix timestamp value.

  • after

    The before operator can be used to check if a time property occurs after a given unix timestamp value.

  • between

    The between operator can be used to check if a time property occurs between two given unix timestamps.

  • containsblockelement

    The containsblockelement operator can be used to check if a documents content contains a certain block element.