You are here: C++ Support Classes > dtSearch Namespace > Classes > DSearchJob Class > DSearchJob::DetachResults Method
DSearchJob::DetachResults Method
dtSearch Text Retrieval Engine Programmer's Reference
DSearchJob::DetachResults Method

Detach and return the search results generated by this search.

DSearchResults * DetachResults();

After a search, use GetResults to access search results. The DSearchJob will continue to own the search results object, so you may not delete the pointer returned from GetResults because the DSearchJob destructor will delete the search results. To obtain ownership of the search results object, use DetachResults to get the search results object and tell the DSearchJob to relinquish ownership.

Copyright (c) 1995-2022 dtSearch Corp. All rights reserved.