Collections with Search Blueprints
When you create a search blueprint, you can enable it as a collection provider to display its results. Assets matching the blueprint’s query and configuration are added to the collection.

Beginning in 2025.Q3, the searchable types you define in a blueprint determine which fields can be mapped within a Collection Display fragment. To access specific metadata, you must define the source of your blueprint:
- Single Content Type: Select one specific type (e.g., an object or a specific web content structure) to map its unique, custom fields.
- Multiple or All Types: If you select multiple types, you can map the basic fields common to all assets (e.g., Title, Create Date).
- Single Type with Multiple Subtypes: If you select one parent type with multiple subtypes (e.g., several different Web Content Structures), only the fields common to the parent type are available.
Prior to DXP 2025.Q3, the collection provider only returned content registered with Liferay’s Asset Framework. While you could map basic asset entry fields) in fragments, the content’s type and subtype specific fields (e.g., document, object, and web content fields) were not available.
Using Search Blueprints as Collection Providers
To use a search blueprint’s collection provider,
-
For versions before Liferay DXP 2026.Q1, enable the release feature flag for LPS-129412.
-
Create a blueprint. For Liferay DXP 2025.Q3+, you must toggle the Enable as a Collection Provider switch.
You can also toggle this setting at any time from the blueprint’s configuration tab. See Enable Blueprint as a Collection Provider for more details.
-
Define the searchable types in the blueprint’s Query Builder tab.

-
Save your blueprint.
-
Add the Collection Display fragment to a content page and choose the blueprint’s collection provider in the Collection Providers field.
You can also use the collection provider when adding collection pages.
-
Map the fields from the blueprint response to your fragments.

As with other collections, you can filter the blueprint-driven collection by keywords or categories with a collection filter.
Example: Showing File Entries from a Custom Document Type
Create documents and media files and configure a blueprint to display the events on a content page using the collection display fragment:
-
For versions before Liferay DXP 2026.Q1, enable the release feature flag for LPS-129412.
-
Navigate to Product Menu → Content & Data → Documents and Media → Document Types.
-
Click New and create a document type called
Cat Photoswith a Text field labeledCat’s Name. -
Create a second document type called
Dog Photoswith a Text field labeledDog’s Name.
NoteTo use the custom fields of these document types in the blueprints collection display, you must select a single type (Document) and a single subtype (e.g., Cat Photos) as the blueprint’s searchable type. If you select a second subtype (e.g., Dog Photos), only the shared fields from the Document type are available.
-
Navigate to Product Menu → Content & Data → Documents and Media to upload files using your new document types.
-
Click New and create one entry for each type.
Feel free to customize the example values:
- Type: Cat Photos
- Title: Priscilla lounging dramatically
- Cat’s Name: Priscilla Tenderpaws
- File: Upload a photo
- Type: Dog Photos
- Title: Foofy on the couch
- Dog’s Name: Foofy Hernandez
- File: Upload a photo

- Type: Cat Photos
-
Navigate to Global Menu (
) → Applications → Blueprints. -
Create a new blueprint titled
Pet Photos Blueprintand switch the Enable as a Collection Provider toggle to active. -
In the Query Builder tab under Source, choose the Selected Types option.
-
Select Document as the asset type; then select Dog Photos and Cat Photos as the subtypes.

-
Save the blueprint.
-
Create a new content page called
Petsand add a Collection Display fragment. -
Select the Pet Photos Blueprint collection provider.

-
Add a Heading fragment to the collection’s dropzone and click the text to open the mapping sidebar. Map the fragment to the Title field.
Custom fields like Cat’s Name are hidden because multiple subtypes are selected.

-
Add an Image fragment and map it to the document’s Preview Image field.

-
Publish the page, and the collection shows both pets you added.

To use a custom document type’s fields in the collection display, you must edit the blueprint, removing all but a single type/subtype pair (e.g., Document → Dog Photos). Then, reconfigure the collection display (you may need to start from scratch) and see that the custom fields are now available for mapping.

Example: Showing Future Events
Create calendar events and configure a blueprint to return only events that happen in the future. Display the events on a content page using the collection display fragment:
-
For versions before Liferay DXP 2026.Q1, enable the release feature flag for LPS-129412.
-
Add the Calendar widget to a page and create three events:
- Past Event: Set the end time to 5–15 minutes from the current time.
- Future Event 1: Set the start time to tomorrow.
- Future Event 2: Set the start time to next week.

-
Navigate to Global Menu (
) → Applications → Blueprints. -
In the Elements tab, click New and create a new custom element called
Limit Results to Future Eventswith this JSON:{ "description_i18n": { "en_US": "Limit results to only future events, using the endTime field." }, "elementDefinition": { "category": "filter", "configuration": { "queryConfiguration": { "queryEntries": [ { "clauses": [ { "context": "query", "occur": "filter", "query": { "range": { "endTime": { "gt": "${time.current_date|date_format=timestamp}" } } } } ] } ] } }, "icon": "filter", "uiConfiguration": {} }, "title_i18n": { "en_US": "Limit Results to Future Events." }, "type": 0 } -
Click Save.
-
In the Blueprints tab, create a new blueprint titled
Future Calendar Events Providerand switch the Enable as a Collection Provide toggle to active. -
In the Query Builder tab under Source, choose Selected Types and select Calendar Event as the asset type.
-
In the Query Elements tab, add the Limit Results to Future Events element.

-
Save the blueprint.
-
Create a new content page called
Upcoming Eventsand add a Collection Display fragment. -
Select the Future Calendar Events Provider collection provider.
Configure the collection display fragment to show a bullet list.
-
Add a Heading fragment to the collection’s dropzone and map it to the Title field.
-
Publish the page.
Only events with an
endTimegreater than the current date appear in the collection.

Leverage blueprints to return your results dynamically, and reap the benefits of the fragments toolbox to lay out the page.