Setting up the search page and block
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
How to configure the search page
This module provides a React-based search page that pulls results from the selected Solr index and provides some basic filter and faceting. After configuring your search index, you can visit admin/config/search/federated-search-settings to configure the search page. Configuration allows users to set the route of the search page, the index, and a number of options that are passed to the application.
How to add the search form block
You can add the provided search form block by browsing to your sites's block placement page at /admin/structure/block. Scroll down to the disabled blocks and find the "Federated Search Page Form block".
Place the block in your desired theme region.
Configure the block to hide the block title.
Using your own search form
If you use your own search form, make sure to configure it to work with the Federated Search App search page:
- Build a URL from the
search_api_federated_solr_pathvariable and set that as the form action - Use
getas the form method - Ensure that the querystring param for the search term is named
search
Help improve this page
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