How to use the dataset which is comming from the SearchHelper.Search(parameters);

giridhar Addagalla asked on November 14, 2018 12:44

Hi, I am getting the dataset from the DataSet results = SearchHelper.Search(parameters); but i am not able to use the data and extract the content from that, i need the product repeated information from that and i am getting some values which are not able to use and process them can you help me in how to use them.

Recent Answers


Peter Mogilnitski answered on November 14, 2018 13:57

Here is an example.

0 votesVote for this answer Mark as a Correct answer

giridhar Addagalla answered on November 14, 2018 14:46

thanks, for that and can you say how to pass price range as a parameter to the SearchHelper. searchText = searchText + " +synnexskuprice:[100000 TO 300000]"; this is what i am using but not working.

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on November 14, 2018 21:16

The syntax is not correct, your final SearchHelper.SearchFor should be something like : +(_content: searchText AND synnexskuprice:[100000 TO 300000]). You can also use SearchHelper.CombineSearchCondition()

0 votesVote for this answer Mark as a Correct answer

giridhar Addagalla answered on November 14, 2018 21:38

Do this query work as range filter or it will work as a normal search keyword, why because i am getting the results as 0. I think you are able to get an idea after seeing my query string which is passing to searchhelper(parameter), This is what my parameter is (desktop)" +_culture[t.en TO t.en]" +(_content: searchText AND synnexskuprice:[100000 TO 300000]) actually after passing this parameter the results should be the products which has the name or keyword of desktop should come along with the price range between 100000 TO 300000, but i am getting the results as 0.

0 votesVote for this answer Mark as a Correct answer

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