getgrav / grav-plugin-simplesearch

Grav SimpleSearch Plugin
https://getgrav.org
MIT License
44 stars 55 forks source link

Merge tag '1.14.2' into develop #182

Closed ThosG closed 4 years ago

ThosG commented 5 years ago

Release v1.14.2

<?php namespace Grav\Plugin;

use Grav\Common\Page\Collection; use Grav\Common\Plugin; use Grav\Common\Uri; use Grav\Common\Page\Page; use Grav\Common\Page\Types; use Grav\Common\Taxonomy; use Grav\Common\Utils; use Grav\Common\Data\Data; use Grav\Common\Config\Config; use RocketTheme\Toolbox\Event\Event;

class SimplesearchPlugin extends Plugin { /**

// -------------------------- } else { if ($search_content == 'raw') { $content = $page->rawMarkdown(); } else { $content = $page->content(); } $result = $this->matchText(strip_tags($content), $query) === false; } $results = $results && $result; if ($results === false ) { break; } } return $results; } }

ThosG commented 5 years ago

Search custom fields as well as taxonomy and content

nhayward commented 4 years ago

Is this going to be merged in at some point? Would be great to have the modular page content search update.

rhukster commented 4 years ago

Not sure what this is, releasing 2.0 anyway