This project is read-only.

Advanced Filtering Using Query String, Queries/Projections and maybe Wildcards?

Topics: Customizing Orchard
Jul 7, 2014 at 8:59 PM
Edited Jul 8, 2014 at 10:29 PM
How do I simulate a wildcard search on certain fields using Query filters? For example if I have a field on my content type called "Region" and when a value for region is provided from my search form in the frontend (or via query string for instance) I want to fetch all content that matches that region else, fetch all items regardless of region and matching other filters (which are also subject to the same logic).

In basic linq Code terms, I would be trying to do this:
...where Region == "" || item.Region.Equals(Region)
Where "Region" is a passed in parameter

Thanks in advance to anyone who can help.