Build your first faceted search
This quick start creates one filter and one live result list. Use representative published content so the counts and matches are meaningful.
Prerequisites
- A supported archive or an existing custom query.
- At least two published items with different values in one taxonomy or short custom field.
- Permission to edit theme settings and the target Page Builder layout.
Configure the context
- Open Settings → POM Theme → Content model → Faceted search.
- Enable Enable faceted search if it is off.
- In the context table, locate the query you want to filter.
- Select Edit facets.
- Select Add facet.
- Enter a customer-facing Label.
- Choose Checkboxes as Type.
- Choose the correct Source, then enter its key.
- Keep Operator as OR for this first test.
- Leave Enabled active and select Save facets.
- Return to the context table and select Reindex context.
Wait until the indexing progress completes.
Assemble the page
- Copy the generated Facet ID from the context editor.
- Edit the page or template that uses the same archive or custom query.
- Add Faceted Search Facet and paste the ID into Facet ID.
- Add Listings (Feed).
- Match its Query type to the context. For a saved query, choose Custom query and the same Custom queries value.
- Set Use with faceted search? to Yes.
- Keep Facet submit mode set to Automatic.
- Add Faceted Search Counts and Faceted Search Reset.
- Save the layout.
Verify the result
Open the public page in a private browser window. Confirm that:
- the unfiltered list contains the expected items;
- each checkbox count is plausible;
- selecting one value narrows the cards;
- the URL gains a
pf_parameter; - Faceted Search Reset restores the initial set.
If the filter is empty, review Debug a facet. For a production layout, continue with Create a filterable listing.