You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::addItem Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchResults::addItem Method
Syntax
C++
int addItem(const char * indexRetrievedFrom, int docId, int hitCount, const long * hits);
Parameters
Description
const char * indexRetrievedFrom
The path to the index containing this document.
int docId
The document id of this document (usually obtained from dtsSearchResultsItem.docId).
int hitCount
Number of hits in the document.
const long * hits
A vector of hitCount 32-bit integers with the word offsets of hits.

Add a document to search results.

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