If SetWantResultsAsFilter(true) was called before the search, the search results will include a search filter (see dtsSearchFilter) with all of the documents retrieved in the search.
Note: The output search filter is separate from the optional search filter that you can provide to limit the results of the search, through SetSearchFilter().