Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
dtsSearchResults::addItem Method
dtsSearchResults Class | dtsSearchResults Class | Send Feedback

Add a document to search results.

int addItem(const char * indexRetrievedFrom, long docId, long hitCount, long * hits);
Parameters
Parameters 
Description 
const char * indexRetrievedFrom 
The path to the index containing this document. 
long docId 
The document id of this document (usually obtained from dtsSearchResultsItem.docId). 
long hitCount 
Number of hits in the document. 
long * hits 
A vector of hitCount 32-bit integers with the word offsets of hits. 
Class
Links
You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::addItem Method
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.