diff --git a/README.md b/README.md index 1bbfbe9..449b9b5 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Upgrading to 2.0.0 from 1.* is highly recommended, but it does introduce some ri Important changes from 1.* to 2.0.0: - The namespace has been changed from `sisea` to `simplesearch`. If you're using custom System Settings, then please migrate them. +- The placeholder prefix has also been changed from `sisea` to `simplesearch`. - The ElasticSearch and SOLR drivers have been removed, because they were in need of improvements. Future drivers should be seperate addons. Feel free to ask us for help here. ## Autosuggest @@ -35,3 +36,8 @@ $('.simplesearch-search-form input[type="text"]').on('keyup', function () { ## Bugs and feature requests We value your feedback, feature requests and bug reports. Please issue them on [Github](https://github.com/Sterc/SimpleSearch/issues/new). + +# Free Extra +This is a free extra and the code is publicly available for you to change. The extra is being actively maintained and you're free to put in pull requests which match our roadmap. Please create an issue if the pull request differs from the roadmap so we can make sure we're on the same page. + +Need help? [Approach our support desk for paid premium support.](mailto:service@sterc.com) diff --git a/_build/config.json b/_build/config.json index 79827c1..584280a 100644 --- a/_build/config.json +++ b/_build/config.json @@ -3,7 +3,7 @@ "lowCaseName": "simplesearch", "description": "A simple search solution for MODX Revolution. Loosely based on AjaxSearch for Evolution (minus the ajax). Only searches Resources; does not search dynamic content.", "author": "Sterc", - "version": "2.1.0-pl", + "version": "2.1.2-pl", "package":{ "elements": { "chunks": [{ diff --git a/_packages/simplesearch-2.1.1-pl.transport.zip b/_packages/simplesearch-2.1.1-pl.transport.zip new file mode 100644 index 0000000..ee9f00f Binary files /dev/null and b/_packages/simplesearch-2.1.1-pl.transport.zip differ diff --git a/_packages/simplesearch-2.1.2-pl.transport.zip b/_packages/simplesearch-2.1.2-pl.transport.zip new file mode 100644 index 0000000..856320e Binary files /dev/null and b/_packages/simplesearch-2.1.2-pl.transport.zip differ diff --git a/core/components/simplesearch/docs/changelog.txt b/core/components/simplesearch/docs/changelog.txt index 9805e2d..b0f69b0 100644 --- a/core/components/simplesearch/docs/changelog.txt +++ b/core/components/simplesearch/docs/changelog.txt @@ -1,5 +1,15 @@ Changelog for SimpleSearch. +SimpleSearch 2.1.2 +======================================================================== +- Show facet results when default has none. +- Have all placeholders in no result page +- Fix pagination for pageLimit & facet search + +SimpleSearch 2.1.1 +======================================================================== +- Fix includeTVList bug to show normal search results as well. + SimpleSearch 2.1.0 ======================================================================== - Added pdoParser support @@ -52,7 +62,7 @@ SimpleSearch 1.8.0 - Added support to ElasticSearch driver for using search fields - Added support to ElasticSearch driver for boosting results by a field value - Updated Elastica to v0.90.7.0 -- Added outputSeparator option +- Added outputSeparator option SimpleSearch 1.7.0 ======================================================================== diff --git a/core/components/simplesearch/elements/snippets/simplesearch.snippet.php b/core/components/simplesearch/elements/snippets/simplesearch.snippet.php index 2eaec21..2adccf5 100644 --- a/core/components/simplesearch/elements/snippets/simplesearch.snippet.php +++ b/core/components/simplesearch/elements/snippets/simplesearch.snippet.php @@ -7,10 +7,10 @@ * @package simplesearch */ require_once $modx->getOption( - 'simplesearch.core_path', - null, - $modx->getOption('core_path') . 'components/simplesearch/' - ) . 'model/simplesearch/simplesearch.class.php'; + 'simplesearch.core_path', + null, + $modx->getOption('core_path') . 'components/simplesearch/' +) . 'model/simplesearch/simplesearch.class.php'; $search = new SimpleSearch($modx, $scriptProperties); /* Find search index and toplaceholder setting */ @@ -54,12 +54,13 @@ $offsetIndex = $modx->getOption('offsetIndex', $scriptProperties, 'simplesearch_offset'); $idx = isset($_REQUEST[$offsetIndex]) ? (int) $_REQUEST[$offsetIndex] + 1 : 1; $postHooks = $modx->getOption('postHooks', $scriptProperties, ''); -$activeFacet = $modx->getOption('facet',$_REQUEST,$modx->getOption('activeFacet', $scriptProperties, 'default')); +$activeFacet = $modx->getOption('facet', $_REQUEST, $modx->getOption('activeFacet', $scriptProperties, 'default')); $activeFacet = $modx->sanitizeString($activeFacet); $facetLimit = $modx->getOption('facetLimit', $scriptProperties, 5); $outputSeparator = $modx->getOption('outputSeparator', $scriptProperties, "\n"); $addSearchToLink = (int) $modx->getOption('addSearchToLink', $scriptProperties, 0); $searchInLinkName = $modx->getOption('searchInLinkName', $scriptProperties, 'search'); +$noResults = true; /* Get results */ $response = $search->getSearchResults($searchString, $scriptProperties); @@ -87,7 +88,7 @@ $text = $modx->runSnippet($extractSource, $resourceArray); } - $extract = $search->createExtract($text,$extractLength,$extract,$extractEllipsis); + $extract = $search->createExtract($text, $extractLength, $extract,$extractEllipsis); /* Cleanup extract */ $extract = strip_tags(preg_replace("#\