Hi,
From your description I believe you will have to use Search method, you can find an example of use of this method in ~/CMSModules/SmartSearch/Controls/SearchResults.ascx.cs. You will have to manually fill the search parameters, then you can find the search results stored in dataset, there is for example a column called ID. Using this column you should be able to retreive the data from the database and then work with them in any way you want.
Best Regards,
Roman Konicek