You are here: C++ API > Classes > dtsWordListBuilder Class > getWord Method > dtsWordListBuilder::getWord Method (long, char *, long, long&)
dtsWordListBuilder::getWord Method (long, char *, long, long&)
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsWordListBuilder::getWord Method (long, char *, long, long&)

Get the text of one word in the list

Syntax
C++
void getWord(long iWord, char * buf, long bufSize, long& count);
Parameters
Description
long iWord
The word to get
char * buf
Buffer to receive the text
long bufSize
Size of the buffer pointed to by buf
long& count
[Output] Number of times the word occurs in the index
Note: To make WordListBuilder fast, it does not actually enumerate all of the references for each word, so in some cases the counts can include artifacts of the indexing process such as removed or reindexed documents, which can make the reported counts higher than the actual counts in the index. Compressing an index will eliminate these extra references.