SiteSearch

Adds global search capabilities to October CMS

Back to SiteSearch Support

neutron
neutron

C:\xampp\htdocs\pldt-enterprise-web-oct\plugins\offline\sitesearch\classes\providers\RainlabBlogResultsProvider.php line 54 EXCEPTION Symfony\Component\Debug\Exception\FatalThrowableError

    foreach ($this->posts() as $post) {
        // Make this result more relevant, if the query is found in the title
        $relevance = mb_stripos($post->title, $this->query) === false ? 1 : 2;

        if ($relevance > 1 && $post->published_at) {
            $relevance -= $this->getAgePenalty($post->published_at->diffInDays(Carbon::now()));
        }

        $result        = new Result($this->query, $relevance);
        $result->title = $post->title;
        $result->text  = $post->summary;

I updated the sitesearch to its latest version. And I get this whenever I search a Long text

neutron

1-2 of 2