Custom search in Orchard

Topics: Customizing Orchard
May 21, 2013 at 12:37 PM
Hi everyone,
How to write module custom search in orchard?I want the user to choose data (ex: from item to item ) then begin search.
has anyone got this working yet? or suggestions?

Thank you.
Best regards!
Coordinator
May 21, 2013 at 5:54 PM
You just need to copy/paste the search controller, and adapt the query to your needs. Instead of using the Parse method, just parse the search query as you want and use the ISearchBuilder to construct the query.
May 22, 2013 at 5:06 PM
Thanks.