AttachmentInfo EnsureSearchContent Method Kentico 8.0 API Reference
Returns the search content of the attachment (including names, title, description and extracted content of the attachment binary data) which should be included to the content field of the SearchDocument. Caches the extracted value to the AttachmentSearchContent field if called for the first time (calls AttachmentInfoProvider.SetAttachmentInfo(this, false) in this case to save to value to the DB).

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

context
Type: CMS.Search ExtractionContext
Extration context passed to the text extractors
searchFields
Type: CMS.DataEngine ISearchFields
Search fields collection that can be extended by extractors (DOES NOT modify the content field, this is dealt with separately - as a return value of this method)

Return Value

Type: OnlineString
See Also