From e8ee00d40f0ca5c559e2a2a91e8e083901d33f5f Mon Sep 17 00:00:00 2001 From: Andriy Oprysko Date: Tue, 5 Mar 2019 15:21:34 +0200 Subject: [PATCH] [FEATURE] add ext. Solr support (#485) * [WIP] require composer * [TASK] implement solr url modifier * [TASK] make header template compatible with new solr * [TASK] add special configuration file for solr * [TASK] make suggest script compatible with new solr suggest * [TASK] remove url modifier for solr * [TASK] new TypoScript solr configuration * [TASK] changes in solr templates according to changes in solr 9 * [TASK] add backward compatibility template for document results * [TASK] remove comma and semicolon in suggest.js * [TASK] compile less and css * [TASK] mvoe suggest solr configuration --- .../development.docker.setupts | 7 +- .../Partials/Search/Form.html | 6 +- .../HeaderTopSearch/Partials/Search/Form.html | 8 +- .../Private/Extensions/Solr/Layouts/Main.html | 4 + .../Solr/Partials/Result/Document.html | 44 +++++++++ .../Solr/Templates/Search/Form.html | 9 ++ .../Solr/Templates/Search/Results.html | 4 +- .../TypoScript/Includes/suggest.typoscript | 32 ++++++ .../IndexConfiguration/solr_news.typoscript | 97 +++++++++++++++++++ .../Extensions/Solr/TypoScript/setup.ts | 35 ++++--- Resources/Public/css/main.js | 14 ++- Resources/Public/less/main.js | 14 ++- composer.json | 5 +- felayout_t3kit/dev/js/main/suggest.js | 14 ++- 14 files changed, 252 insertions(+), 41 deletions(-) create mode 100644 Resources/Private/Extensions/Solr/Layouts/Main.html create mode 100644 Resources/Private/Extensions/Solr/Partials/Result/Document.html create mode 100644 Resources/Private/Extensions/Solr/Templates/Search/Form.html create mode 100644 Resources/Private/Extensions/Solr/TypoScript/Includes/suggest.typoscript create mode 100644 Resources/Private/Extensions/Solr/TypoScript/IndexConfiguration/solr_news.typoscript diff --git a/Configuration/TypoScript/ApplicationContext/development.docker.setupts b/Configuration/TypoScript/ApplicationContext/development.docker.setupts index 63d193a9..a54eb5d9 100644 --- a/Configuration/TypoScript/ApplicationContext/development.docker.setupts +++ b/Configuration/TypoScript/ApplicationContext/development.docker.setupts @@ -1,6 +1,3 @@ -[applicationContext = Development/Docker] +#[applicationContext = Development/Docker] - # set solr host to t3kit_solr - plugin.tx_solr.solr.host = t3kit_solr - -[global] \ No newline at end of file +#[global] \ No newline at end of file diff --git a/Resources/Private/Extensions/Solr/HeaderMiddleSearch/Partials/Search/Form.html b/Resources/Private/Extensions/Solr/HeaderMiddleSearch/Partials/Search/Form.html index 6e8df22c..748c4aea 100644 --- a/Resources/Private/Extensions/Solr/HeaderMiddleSearch/Partials/Search/Form.html +++ b/Resources/Private/Extensions/Solr/HeaderMiddleSearch/Partials/Search/Form.html @@ -8,8 +8,10 @@