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

Prevents a found document from being included in search results.

Syntax
C++
void VetoThisItem();

An application can veto individual documents during a search by implementing the OnFound notification function and, in that function, calling VetoThisItem to veto a document when OnFound is invoked. 

Calling VetoThisItem does not cancel the search. It only excludes one document from being included in search results or from counting toward the total hit count for the search.