Add a filter

You can add simple, composite, or fixed filters to a page to change the number of search results displayed in a Search component.

Before you begin

Add a simple filter

Use a simple filter to include only entities that match a specific definition, property, relation, or selection.

To add a simple filter:

  1. On the Layout tab, click the Search component to open its details page.

  2. In the left pane, in the General section, click Filters.

  3. Click Filter.

  4. In the Filter type list, choose one of the following filter types:

    • Definition - to filter on an entity definition only.

    • Property - to filter on a specific entity definition field and value.

    • Relation - to build a filter expression.

    • Selection - to filter on an entity definition selection pool where the entity is stored.

  5. In the Definition list, select a definition.

  6. Based on your choices, configure the additional parameters required for the filter.

  7. Click Save.

Add a composite filter

Use a composite filter to combine simple filters using AND or OR logic for more advanced search conditions.

To add a composite filter:

  1. If you haven't already done so, add the first simple filter.

  2. Click Add filter group.

  3. Choose one of the following operators:

    • AND - requires both of the adjacent simple filters to be satisfied.

    • OR - requires one or both of the adjacent simple filters to be satisfied.

  4. Click Save.

  5. Add the next simple filter.

  6. Repeat steps 2-6 until you've added all the required conditions.

  7. Click Save and close.

Add a fixed filter

Use fixed filters to render related content for a selected entity, for example, to show all assets linked to a specific project on that project's details page.

To add a fixed filter:

  1. On the Layout tab, click the Search component to open its details page.

  2. In the left pane, in the General section, click Filters and then click the Fixed tab.

  3. Click Fixed filter.

  4. In the Input section, define the following settings.

    Field

    Description

    Input type

    The input type of the filter, which can be Page entity or Related entity.

    Relation

    For Related entity types, a list of relations defined in your solution.

  5. In the Filter section, in the Filter type list, choose the type of filter you want.

  6. depending on the chosen Input type and Filter type, fill out the following settings.

  7. Click Save.

  8. Click Save and close.

Do you have some feedback for us?

If you have suggestions for improving this article,