Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

SearchHelper.Search DataSet always returns NULL

$
0
0
I have been smashing my head over this. In the admin area, the test search works on the Index, but I get NULL everytime I make a request through the API.private static DataSet ExecuteSearch(string searchTerm) { SearchIndexInfo sii = SearchIndexInfoProvider.GetSearchIndexInfo(@PPG.CEMProductSearch@); SearchParameters parameters = new SearchParameters { SearchFor = searchTerm, SearchSort = null, Path = @/%@, ClassNames = null, DefaultCulture = null, CurrentCulture = @##ALL##@, CombineWithDefaultCulture = false, CheckPermissions = false, SearchInAttachments = false, User = MembershipContext.AuthenticatedUser, SearchIndexes = sii.IndexName, DisplayResults = 100, NumberOfProcessedResults = 100, NumberOfResults = 100, AttachmentWhere = null, AttachmentOrderBy = null, }; DataSet sr = SearchHelper.Search(parameters); return sr; }

Viewing all articles
Browse latest Browse all 8901

Trending Articles