Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
DDataSourceBase2::getDocInfoByName Method
DDataSourceBase2 Class | DDataSourceBase2 Class | dtSearch Namespace | Send Feedback

Get information about a named document in the data source.

virtual int getDocInfoByName(const char * docName, const char * userFields, dtsDataSourceFileInfo& fi) = 0;
Parameters
Parameters 
Description 
const char * docName 
The name of the document in the data source 
const char * userFields 
String set containing any stored fields associated with this document. 
Returns

0 on success, or -1 if the document could not be accessed. 

If the document could not be returned, the specific error should be provided in dtsDataSourceFileInfo.accessResult.

Remarks

The data source implementation should ensure that string pointers in the dtsDataSourceFileInfo remain valid until the next getNextDocInfo call. Following a getNextDocInfo call, the dtSearch Engine may either call getCurrentDoc to get the document contents, or it may call getNextDocInfo again to get the next document.

Class
Links
You are here: C++ Support Classes > dtSearch Namespace > Classes > DDataSourceBase2 Class > DDataSourceBase2::getDocInfoByName Method
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.