November Happy Hour will be moved to Thursday December 5th.

SearchDataSource AND / OR operator

Vote:
 

hi,

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
            };

    

#70439
Apr 19, 2013 14:11
Vote:
 

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. 

 

#71610
May 24, 2013 7:41
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.