You are here: COM Interface > Interfaces > ISearchResults Interface > ISearchResults::AddDoc Method
dtSearch Text Retrieval Engine Programmer's Reference
ISearchResults::AddDoc Method
HRESULT AddDoc([in] BSTR indexPath, [in] LONG docId, [in] VARIANT hits);

Add a specific document from an index to the search results list. docId is a document id identifying the document to add. hits is an array of integers containing the word offsets of the hits for this document. See the IndexInfo.vbs sample for an example of how AddDoc can be used.

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