Hi

I configured my entire search setup using the Search api-module with search-api-db (no Solr) and the facets API.

I have a fully functioning search view. However I want on each page a search box and when clicked on "search"-button, I get redirected to the searchpage in question.
How do I do this? How can I add just a simple textfield with button that leads to my search results page, using the Search Api?

Comments

Poieo’s picture

You need to add and expose a filter in your view for Search: Fulltext search.

Once you have the exposed filter, you can set the general view settings to display exposed filters in a block (Under Advanced > Exposed Form). Then, you have a search block you can place anywhere on your site.

jheirman’s picture

Works like a charm thanks!