public function indexPage()
    {
        $pageIndexed = false;
        $documents = []; // this will become useful as soon as when starting to index individual records instead of whole pages

        if (is_null($this->solrConnection)) {
            // intended early return as it doesn't make sense to continue
            // and waste processing time if the solr server isn't available
            // anyways
            // FIXME use an exception
            return $pageIndexed;
        }

        $pageDocument = $this->getPageDocument();
        $pageDocument = $this->substitutePageDocument($pageDocument);

        $this->applyIndexPagePostProcessors($pageDocument);

        self::$pageSolrDocument = $pageDocument;
        $documents[] = $pageDocument;
        $documents = $this->getAdditionalDocuments($pageDocument, $documents);
        $this->processDocuments($documents);

        $pageIndexed = $this->addDocumentsToSolrIndex($documents);
        $this->documentsSentToSolr = $documents;

        return $pageIndexed;
    }
public function indexPage()
    {
        $pageIndexed = false;
        $documents = []; // this will become useful as soon as when starting to index individual records instead of whole pages

        if (is_null($this->solrConnection)) {
            // intended early return as it doesn't make sense to continue
            // and waste processing time if the solr server isn't available
            // anyways
            // FIXME use an exception
            return $pageIndexed;
        }

        $pageDocument = $this->getPageDocument();
        $pageDocument = $this->substitutePageDocument($pageDocument);

        $this->applyIndexPagePostProcessors($pageDocument);

        self::$pageSolrDocument = $pageDocument;
        $documents[] = $pageDocument;
        $documents = $this->getAdditionalDocuments($pageDocument, $documents);
        $this->processDocuments($documents);

        $pageIndexed = $this->addDocumentsToSolrIndex($documents);
        $this->documentsSentToSolr = $documents;

        return $pageIndexed;
    }
public function indexPage ( ) { $ pageIndexed = false ; $ documents = [ ] ; // this will become useful as soon as when starting to index individual records instead of whole pages if ( is_null ( $ this -> solrConnection ) ) { // intended early return as it doesn't make sense to continue // and waste processing time if the solr server isn't available // anyways // FIXME use an exception return $ pageIndexed ; } $ pageDocument = $ this -> getPageDocument ( ) ; $ pageDocument = $ this -> substitutePageDocument ( $ pageDocument ) ; $ this -> applyIndexPagePostProcessors ( $ pageDocument ) ; self :: $ pageSolrDocument = $ pageDocument ; $ documents [ ] = $ pageDocument ; $ documents = $ this -> getAdditionalDocuments ( $ pageDocument , $ documents ) ; $ this -> processDocuments ( $ documents ) ; $ pageIndexed = $ this -> addDocumentsToSolrIndex ( $ documents ) ; $ this -> documentsSentToSolr = $ documents ; return $ pageIndexed ; }
Indexes a page.

@return bool TRUE after successfully indexing the page, FALSE on error
@throws \UnexpectedValueException if a page document post processor fails to implement interface ApacheSolrForTypo3\Solr\PageDocumentPostProcessor
Indexes a page .