Searching in folder/view using Database.search method in Java

Hi All,

I am looking for the sample search string for database.search method which can search on a particular view/folder.

Using database.search I am able to search all contacts/ tasks /appointments/mails but now I want to limit search area within a folder/view.

I cannot use FTSearch method as it cannot search on particular field. I tried using view.getAllDocumentsByKey but column list which I am getting using view.getColumns is ambiguous so I am looking for solution approach using database.search method.

Let me know solution approach if any for the above problem.

Thanks in advance.

~Will Turner