You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::setDocInfo Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchResults::setDocInfo Method
Syntax
C++
void setDocInfo(long iItem, const dtsSearchResultsItem& item);
Parameters
Description
long iItem
The item to change (a zero-based index into the search results list)
const dtsSearchResultsItem& item
The values to assign to this item

Change the values in a search results item

setDocInfo can be used to change values a search results list. For example, it can be used to assign a different score to each item. Call getDocInfo first to get the data associated with the item.