I know Drupal has built in search module, but I want more flexibility and control. Is it possible using Views to create the search form and results pages?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure. There’s two ways. One is to use Views filters: just create the view for the results page, add a filter, and expose the filter. You can create a search block by checking the option to create a block for the exposed form in the Views settings. Load the Advanced Help module for more information about Views filters.
The other way is to use Apache Solr and the Apache Solr Views module. Same idea as just using Views filters, but it’ll use the Solr search backend instead of just doing SQL queries to the database.