Setting up the search page and block

Last updated on
19 December 2018

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-api-federated-solr/search-app/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. Place a block in your desired theme region.

In the Place block dialogue, select the Federated Search Page Form block in the Federated Search category.

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.search route and set that as the form action
  • Use get as the form method
  • Ensure that the querystring param for the search term is named search

The app-provided block also checks the Search API Federated Solr module config to see if "Set the 'Site name' facet to this site" is selected, and if so adds an additional parameter to the query string.

Help improve this page

Page status: No known problems

You can: