I installed the Search API module and followed the documentation to set up an index and a search box using views and facets. It doesn't show an exposed form to search, even though there is a view and I can get a static grid of products. I set through the blocks where the exposed form should be, but it doesn't appear.

According to How to index Drupal Commerce 2 products for the search? the standard search doesn't show products, but the search block configuration seems to indicate that products can be shown.

search configure

  • Please add some more detailed information about what you did and link to the docs you say you followed. You say there's no exposed form even though you created a view, but did you add an exposed form to the view? Also, your screenshot seems to show a block configuration screen where you've configured the block to appear on certain product pages - which doesn't seem to have anything to do with the rest of your question.
    – sonfd
    Commented Mar 20, 2022 at 13:10
  • I used Acromedias howto at acromedia.com/article/… usinga Solr server - but it has language issues but will produce a form that does not display results and another from docs.drupalcommerce.org/commerce2/developer-guide/products/… using the database server which does not produce a search box but I can display a page of all products. apaderno changed the question into completely something OTHER than I am asking - I want a search box that will show BOTH content and products. Commented Mar 20, 2022 at 21:24
  • I see from the last line that the "visibiity" setting in the config is an "exclusion" and not an "inclusion" setting Commented Mar 20, 2022 at 21:27
  • 1
    It's not clear what the block is that you're showing the visibility settings for. But if that is for the search form for your products list, you need to make sure it's set to display on the same page as the view you made, probably something like /products. Or it might be even easier to set your view to NOT expose the form in a block. In the Exposed form section of the Advanced settings, click the Yes link next to Exposed form in block to change the setting to No.
    – sonfd
    Commented Mar 20, 2022 at 22:12
  • 1
    But these are all just guesses because we have no idea how your view or search indexes are actually configured.
    – sonfd
    Commented Mar 20, 2022 at 22:14

1 Answer 1


Some themes may not display or properly display a block view in certain block regions. For instance AdaptiveTheme using the AT Tool theme generator would not display the Products search block in main content area of the theme and nor on the recommended /products page. It also does not display the add products or most any other "add" button in Drupal Commerce. Other themes do however. Drupal 7 had a module called "Domain Blocks" which associated theme block settings positively to a Domain when Domain Access was used but no such thing exists in Drupal 9 yet as it is only able to use the AT Tool to generate a theme by a different name and use those settings per domain. Placing the block view does display the Products Search block view if placed in the header or features region wich then opens the results in the main content region. It is hit and miss for varios themes - for instance "Danland" lists the second sidebar but does not display it. It probably has something to do with the new twig system of Drupal

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.