Vulnerability in EPiServer.Forms
What operator is used by default to perform a search query using the SearchDataSource control?Is it possible to use and AND operator?
SearchDataSource ds = new SearchDataSource
EnableVisibleInMenu = true,
MaxAllowHits = 999,
SearchQuery = query,
PublishedStatus = PagePublishedStatus.Published,
FilterPagesWithoutTemplate = true,
SearchFiles = true,
PageLink = PageReference.StartPage,
LanguageBranches = languageBranch
SearchDataSource does not use logical operators as such, but accepts the use of + (plus) and - (minus) in the search query text, see http://world.episerver.com/modules/forum/pages/thread.aspx?id=37516
Besides the SearchDataSource.SearchQuery property (which holds the search text which can include + or -), there is no property where you can specify which operands are allowed.