The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2 edited tags
| link
source | link

Integrate core search block with search_api and Solr

Since search_api does not rely on the core Search module, the search bar (Search Form block) isn't used. For a current project I want to use search_api, but the wireframes require the search bar at the top of the page. The apachesolr module overrides that block so that it uses the Solr search instead of the core search when you specify that Solr is the default search. Is there a way with search_api to enable the core Search Form block and have it use a specific search page? In addition, you would also need to be able to keep the core Search module from indexing everything into the db, since that partially defeats the purpose of using Solr, but I'm guessing I could just form_alter that form (admin/config/search/settings) to add a 0 value.