Saved Searches
Saved search fields allow you to render search results within an entity with page content.
You may use the same filter language as in the normal search page. This query then gets saved on publish.
The search results will remain live even after your entity is published.
Creating a Saved Search field

Filtering by Reference field
It is possible to create a filter to only show entities that reference the entity you are on.

To create a filter like this, we use the normal filtering logic for when we want to filter by a field value - following the pattern
field:"Field name"="Field value"
For reference fields, the pattern goes
field:Reference=ref(entity_id,version)
The version after the comma is optional, if you include it, it will show you all entities that reference that entity at that specific version.
If you do not include the version, it will show you all entities that reference any version of the entity,
In saved search config, you can easily find the containing entity's id by using
@ID
In the example above therefore, the config is:
field:"Part number"=ref(@ID)
This returns a list of all entities that have a reference field called "Part number" that references this specific entity: "Part 12345"
Note there is no version included, as the table is showing entities that reference all versions of the part.
Last updated