We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51481
    • 45 Posts
    Thanks again to the PHP legend samtux on the #modx IRC, I am 100% up and running! Here's the final bit that I added to the SimpleSearch snippet:
            if ($extract) {
                /* KEEP THIS LINE AS IT IS THE ORIGINAL CODE */
                $resourceArray['link'] = $modx->makeUrl($resourceArray['id'],'$ctx',$args);
                /* SOME WAY TO GET TITLE OF PAGE */
                $page = $modx->getObject('modResource', $resourceArray['id']); $resourceArray['pagetitle'] = $page->get('pagetitle');
                $page = $modx->getObject('modResource', $resourceArray['id']); $resourceArray['longtitle'] = $page->get('longtitle');
                
            } else {
                /* GENERATE LINKS TO PDF HITS */
                $resourceArray['link'] = substr($resourceArray['id'], 26);
                /* SOME WAY TO GET TITLE OF PDF */
                $resourceArray['pagetitle'] = basename($resourceArray['link'], ".pdf");
            }

    What a long journey that was, and I'm glad it's over. If someone with much more experience than me wants to, they can take the contents of this thread and make updates to SimpleSearch.Solr to make it work with the newest version of Solr (6.0.1 at time of writing).