kentico_romank
-
12/10/2013 9:05:36 AM
RE:GetSearchedContent in API
Hi,
Could you please check the following file ~/CMSModules/SmartSearch/Controls/SearchResults.ascx.cs. In that file around the line 1401 there is "DataSet results = SearchHelper.Search(parameters);", this dataset contains records from index, that means it contains fields marked as searchable plus some internal fields. If you want to render the results, you can use the dataset and get the real objects from database via this dataset or you can use repeater and aply transformation to it, this transformation will generate JSON format as you need.
Please note, when you perform the search through API it is important to set search parameters (see line 1378).
Best Regards, Roman Konicek
|