Close
dtSearch Engine API for .NET Framework 2.x-4.x 2024.01
SearchResultsItem::UserFields Data Member

Field-value pairs found in this document when the document was indexed.

public System::Collections::Specialized::StringDictionary UserFields;

When a document is indexed, dtSearch will store any field-value pairs found in the document when the field name matches one of the StoredFields in the IndexJob used to index this document. 

Example:

SearchResultsItem item = m_results.CurrentItem; string subject = item.UserFields["Subject"];

See Also: 

Retrieving Fields in Search Results in the dtSearch Engine help file, dtSearchApiRef.chm