public function extractByQuery(Query $query)
    {
        try {
            $response = $this->createAndExecuteRequest($query);
            $fileName = basename($query->getFile());
            $metaKey = $fileName . '_metadata';
            return [$response->{$fileName}, (array)$response->{$metaKey}];
        } catch (\Exception $e) {
            $param = $query->getRequestBuilder()->build($query)->getParams();
            $this->logger->log(
                SolrLogManager::ERROR,
                'Extracting text and meta data through Solr Cell over HTTP POST',
                [
                    'query' => (array)$query,
                    'parameters' => $param,
                    'file' => $query->getFile(),
                    'query url' => self::EXTRACT_SERVLET,
                    'exception' => $e->getMessage()
                ]
            );
        }

        return [];
    }
public function extractByQuery(Query $query)
    {
        try {
            $response = $this->createAndExecuteRequest($query);
            $fileName = basename($query->getFile());
            $metaKey = $fileName . '_metadata';
            return [$response->{$fileName}, (array)$response->{$metaKey}];
        } catch (\Exception $e) {
            $param = $query->getRequestBuilder()->build($query)->getParams();
            $this->logger->log(
                SolrLogManager::ERROR,
                'Extracting text and meta data through Solr Cell over HTTP POST',
                [
                    'query' => (array)$query,
                    'parameters' => $param,
                    'file' => $query->getFile(),
                    'query url' => self::EXTRACT_SERVLET,
                    'exception' => $e->getMessage()
                ]
            );
        }

        return [];
    }
public function extractByQuery ( Query $ query ) { try { $ response = $ this -> createAndExecuteRequest ( $ query ) ; $ fileName = basename ( $ query -> getFile ( ) ) ; $ metaKey = $ fileName . '_metadata' ; return [ $ response -> { $ fileName } , ( array ) $ response -> { $ metaKey } ] ; } catch ( \ Exception $ e ) { $ param = $ query -> getRequestBuilder ( ) -> build ( $ query ) -> getParams ( ) ; $ this -> logger -> log ( SolrLogManager :: ERROR , 'Extracting text and meta data through Solr Cell over HTTP POST' , [ 'query' => ( array ) $ query , 'parameters' => $ param , 'file' => $ query -> getFile ( ) , 'query url' => self :: EXTRACT_SERVLET , 'exception' => $ e -> getMessage ( ) ] ) ; } return [ ] ; }
Performs a content and meta data extraction request.

@param Query $query An extraction query
@return array An array containing the extracted content [0] and meta data [1]
Performs a content and meta data extraction request .