Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsAutoUpdateSearchItemRequest Structure

File: dtsearch.h

Syntax
C++
struct dtsAutoUpdateSearchItemRequest { int iItem = 0; dtsSearchJob* pSearchJob = 0; bool bUpdated = false; const char* tempFilename = 0; };

Used with dtsSearchResults::autoUpdateSearchItem to automatically update hit offsets if this document was indexed by an earlier version of dtSearch or was changed since it was last indexed. The update will use the search criteria from the original search (as recorded in SearchResults) in an unindexed search of the document, so the document must be accessible as a file. If the search results item's filename does not correspond to an actual file on disk, set tempFilename to the name of a temporary file containing the document. When highlighting hits using conversion, you can also use dtsConvertAutoUpdateSearch with dtsFileConvertJob2 or DFileConvertJob.