Can I manipulate the DataSet returned from SearchHelper.Search()?

Patrick Taylor asked on November 9, 2018 22:35

Does anyone here know if it's possible to manipulate the DataSet that gets returned from SearchHelper.Search() in the Smart Search Results web part? I have a custom fork of that web part and the associated control, but there seems to be a mismatch between the SearchParameters.NumberOfResults and DataSet.Tables[0].Rows.Count. Is there perhaps a better way to apply custom logic to the smart search results?

Recent Answers

Peter Mogilnitski answered on November 9, 2018 23:27 (last edited on November 10, 2018 01:56)

Kentico by default returns 1000 items for smart search. You can use CMSSearchMaxResultsNumber webconfig key to change it. If a search produces more matching results, the system ignores the items that do not fit into the limit.
I`d say limit it to something meaningful to avoid processing of large numbers of search results with low relevance. You probably do not need more than a couple hundred. Set NumberOfResults to 200 and both sets should be the same.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.