You are here: COM Interface > Interfaces > ISearchResults Interface > ISearchResults::AddDoc Method
dtSearch Text Retrieval Engine Programmer's Reference
ISearchResults::AddDoc Method

Add a specific document from an index to the search results list.

[id(20), helpstring("method AddDoc")] HRESULT AddDoc([in] BSTR indexPath, [in] LONG docId, [in] VARIANT hits);

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-2021 dtSearch Corp. All rights reserved.