protected function processDocuments(Item $item, array $documents)
    {
        // needs to respect the TS settings for the page the item is on, conditions may apply
        $solrConfiguration = Util::getSolrConfigurationFromPageId($item->getRootPageUid());
        $fieldProcessingInstructions = $solrConfiguration->getIndexFieldProcessingInstructionsConfiguration();

        // same as in the FE indexer
        if (is_array($fieldProcessingInstructions)) {
            $service = GeneralUtility::makeInstance(Service::class);
            $service->processDocuments($documents, $fieldProcessingInstructions);
        }

        return $documents;
    }
protected function processDocuments(Item $item, array $documents)
    {
        // needs to respect the TS settings for the page the item is on, conditions may apply
        $solrConfiguration = Util::getSolrConfigurationFromPageId($item->getRootPageUid());
        $fieldProcessingInstructions = $solrConfiguration->getIndexFieldProcessingInstructionsConfiguration();

        // same as in the FE indexer
        if (is_array($fieldProcessingInstructions)) {
            $service = GeneralUtility::makeInstance(Service::class);
            $service->processDocuments($documents, $fieldProcessingInstructions);
        }

        return $documents;
    }
protected function processDocuments ( Item $ item , array $ documents ) { // needs to respect the TS settings for the page the item is on, conditions may apply $ solrConfiguration = Util :: getSolrConfigurationFromPageId ( $ item -> getRootPageUid ( ) ) ; $ fieldProcessingInstructions = $ solrConfiguration -> getIndexFieldProcessingInstructionsConfiguration ( ) ; // same as in the FE indexer if ( is_array ( $ fieldProcessingInstructions ) ) { $ service = GeneralUtility :: makeInstance ( Service :: class ) ; $ service -> processDocuments ( $ documents , $ fieldProcessingInstructions ) ; } return $ documents ; }
Sends the documents to the field processing service which takes care of
manipulating fields as defined in the field's configuration.

@param Item $item An index queue item
@param array $documents An array of Apache_Solr_Document objects to manipulate.
@return Document[] array Array of manipulated Document objects.
Sends the documents to the field processing service which takes care of manipulating fields as defined in the field s configuration .