protected I_CmsSearchDocument appendContentBlob(
        I_CmsSearchDocument document,
        CmsObject cms,
        CmsResource resource,
        I_CmsExtractionResult extractionResult,
        List<CmsProperty> properties,
        List<CmsProperty> propertiesSearched) {

        if (extractionResult != null) {
            byte[] data = extractionResult.getBytes();
            if (data != null) {
                document.addContentField(data);
            }
        }

        return document;
    }
protected I_CmsSearchDocument appendContentBlob ( I_CmsSearchDocument document , CmsObject cms , CmsResource resource , I_CmsExtractionResult extractionResult , List < CmsProperty > properties , List < CmsProperty > propertiesSearched ) { if ( extractionResult != null ) { byte [ ] data = extractionResult . getBytes ( ) ; if ( data != null ) { document . addContentField ( data ) ; } } return document ; }
Extends the given document by a field that contains the extracted content blob.<p>

@param document the document to extend
@param cms the OpenCms context used for building the search index
@param resource the resource that is indexed
@param extractionResult the plain text extraction result from the resource
@param properties the list of all properties directly attached to the resource (not searched)
@param propertiesSearched the list of all searched properties of the resource

@return the document extended by a field that contains the extracted content blob