You are here: C++ Support Classes > dtSearch Namespace > Classes > DSearchJob Class > DSearchJob::SetItemScore Method
DSearchJob::SetItemScore Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DSearchJob::SetItemScore Method

Changes the score associated with an item in search results.

Syntax
C++
void SetItemScore(dtsSearchResultsItem& item, int newVal);

An application can change the score of individual documents during a search by implementing the OnFound notification function and, in that function, calling SetItemScore to modify the document's score when OnFound is invoked.

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