Create a custom search page with facets
Last updated on
30 April 2025
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
Here is how to easily create a custom page with facets for searching and filtering content for a specific content type.
- Add a new view and under Show select "Apache Solr search"
- Fill in other settings as you like
- In the view add a filter 'Apache Solr: entity_type'; under setting set operator to > is equal to "node"
- In the view add a filter 'Apache Solr: bundle'; under setting set operator to > is equal to [machine name of content type]
- Add the fields you want to display
- Create a Panels page: add the view you just created, add the facets you want to display
- le voila: you have a faceted search page for a specific content type
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion