Enable Content Fragment and Model filters in AEM Omnisearch
This article explains how to configure Omnisearch in Adobe Experience Manager (AEM) to allow users to filter assets by Content Fragment type and by Content Fragment Model, improving search and authoring workflows.
Description description
Environment
Adobe Experience Manager 6.5
Issue/Symptoms
- You don’t see filters for Content Fragments or Content Fragment Models when using Omnisearch in the Assets console.
- You can’t easily narrow search results to specific Content Fragment Models.
Cause
AEM Omnisearch doesn’t include a built-in filter for Content Fragment Models. The search form requires customization to expose these filters.
Resolution resolution
Follow these steps to configure the Content Fragment and Content Fragment Model filters:
-
Confirm that Content Fragments and Content Fragment Models are enabled and managed in the AEM instance.
-
Navigate to Tools
>General>Search Forms in AEM. -
Select the search form used by the Assets/Omnisearch rail, typically
damAssetSearch. -
Add a new Property Predicate to the search form:
- To filter Content Fragments, set the property name to
jcr:content/contentFragmentand the value totrue. - To filter by Content Fragment Model, add another Property Predicate with the property name
jcr:content/model. - Configure the predicate to allow users to select from the available Content Fragment Models. You may need to specify the path or provide a list of model titles as options.
- To filter Content Fragments, set the property name to
-
Save and deploy the updated search form.
-
In a test or staging environment, open the Assets console and use Omnisearch to verify that the new filters appear and function as expected:
- The Content Fragment filter should limit results to Content Fragments only.
- The Content Fragment Model filter should allow selection of specific models and refine the results accordingly.
-
If the filters don’t display or function as intended, review the predicate configuration and ensure that the relevant properties are indexed in the repository.
-
After validation, deploy the changes to the production environment.