1

I have Apache Solr search 7.x-1.1 installed and working as my main site search.

I would like to add a search block to one page that allows the user to search, but restricts the results to a single content type. The new search block should be placed in a different location to the main site search, and the two should be able to co-exist on the same page.

What is the simplest way of achieving this please?

3

Once i stumbled upon Custom Search module I found this was easy to achieve. Install the Custom Search module and when configuring the module click on the 'search blocks' tab. Change the number of blocks to the number of additional search blocks you require. I needed two - each one searching by an different content type.

Now go to manage your blocks. Find the new search blocks within the list of block. Click 'configure' for search block to set the options and which content type to restrict to. Note that if you choose more than one content type you can choose whether to add radio buttons, or a drop down etc to allow the user to select what they will search for. This module also has some other interesting features which are outside the scope of this question - check it out.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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