Filter Asset Search Results
Step by Step Guide
- Create an asset type or use an existing one
- Make sure the asset type has a component on it that we can use to filter the asset search results on later
- For this example I will be using an asset type that has a select component on it with the options of “Show in search results” or “Do not show in search results”
- On a workflow add an asset search component and link it to you asset type
- Then go onto the advanced editor to edit the asset search component
- Under the “properties”: {} property you want to add “entityDataFilters”: {}
- You can add multiple filters but for this example I will just be filtering so that only assets that have the value of “Show in search results” will show in the search results of the asset search
- Here is the template of what the entity data filters should look like
"properties": {
"entityDataFilters": {
"$.dataPathOfAssetComponent": [
"Value you want to check for"
]
}
}- So for this example the correct configuration looks like this
- Done!
- Now after you publish you will only be able to search for assets that have the value of “Show in search results”