You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::setDocInfo Method
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchResults::setDocInfo Method
void setDocInfo(long iItem, const dtsSearchResultsItem& item);
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.

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