nickveenhof / drupal8-umami-search Goto Github PK
View Code? Open in Web Editor NEWDrupal 8 codebase for the Search Demonstration Install Profile
License: GNU General Public License v2.0
Drupal 8 codebase for the Search Demonstration Install Profile
License: GNU General Public License v2.0
http://drupalsear.ch/ search doesn't work on the site, and errors about blocks are displayed to the visitor.
Consider fixing the demo site or removing it from readme?
The local installation of the Umami demo search doesn't work, as currently the install script fails.
The errors I get are:
Create a sites/default/settings.php file with chmod 0666
Create a sites/default/files directory with chmod 0777
rm: cannot remove 'docroot/.ht.sqlite': No such file or directory
// You are about to create a sites/default/settings.php file and CREATE the '../.ht.sqlite' database. Do you want to
// continue?: yes.
[notice] Starting Drupal installation. This takes a while.
In SiteSettingsForm.php line 158:
Class does not exist
site:install [--db-url DB-URL] [--db-prefix DB-PREFIX] [--db-su DB-SU] [--db-su-pw DB-SU-PW] [--account-name [ACCOUNT-NAME]] [--account-mail [ACCOUNT-MAIL]] [--site-mail [SITE-MAIL]] [--account-pass ACCOUNT-PASS] [--locale [LOCALE]]
[--site-name [SITE-NAME]] [--site-pass SITE-PASS] [--sites-subdir SITES-SUBDIR] [--config-dir CONFIG-DIR] [--existing-config] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction]
[-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify] [--xh-link XH-LINK] [--druplicon] [--] <command> [<profile>
]...
In Drupal.php line 130:
\Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.
php:eval [--format [FORMAT]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root
ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify] [--xh-link XH-LINK] [--druplicon] [--] <command> <code>
In Drupal.php line 130:
\Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.
php:eval [--format [FORMAT]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root
ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify] [--xh-link XH-LINK] [--druplicon] [--] <command> <code>
Command search-api:reset-tracker was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --debug to see relevant log messages.
Command search-api:index was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --debug to see relevant log messages.
In Settings.php line 172:
Missing $settings['hash_salt'] in settings.php.
cache:rebuild [--cache-clear [CACHE-CLEAR]] [--no-cache-clear] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--re
mote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify] [--xh-link XH-LINK] [--druplicon] [--] <command>
Command pm:enable was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --debug to see relevant log messages.
We already provide suggestions (search_api_autocomplete) but perhaps it could be useful to also add the spellcheck project?
[Drupal project page] https://www.drupal.org/project/search_api_spellcheck
[Drupal 8 port on GitHub] https://github.com/nuvoleweb/search_api_spellcheck
[Deprecated sandbox?] http://cgit.drupalcode.org/sandbox-rupertj-2766155/log/?h=8.x-1.x
If this issue goes in, and we require the new version of the module, we need to update the install path for the js-libraries as well.
https://www.drupal.org/project/facets/issues/2943636#comment-12704534
At the moment we use "Rendered entity" in the search view.
Shouldn't we use the "Rendered HTML output" field as a best practice?
Or is that only a best practice when using search_api_solr.
PS: if we choose to change it, we shouldn't forget to
Would be great if someone could help fixing it. To install this demo site, look at the scripts folder and see the install instructions. A demo of the existing code can be seen on drupalsear.ch and the theme where we make our own changes on top of umami is available in this repository under the docroot/themes/umami_search/ path.
Im looking for a simple implementation to correctly user search api solr with facets search respect to metags as sitemap.
My issue is that all default /taxonomy/terms are basically redirected for facetd in s search view to become /search/taxonomy/term
All this search works nicely BUT is a Seo nightmare.
It starts with the xml sitemap that only uses the
Default core taxonomy path.
The search taxonomy pages canonical urls are also still using default taxonomy paths.
This all results that the Google bot start to get fully confused to where they need to go.
The easiest way out would be to define /search for all Taxonomy linkes.
Currently I welcome any hint that might help, also this is just the git for a demo search but I think many other people will face the same.
Perhaps we could add another language so we show language specific stemming etc?
The username and password displayed at the top of the drupalsear.ch website, which I believe corresponds to this Github project isn't working.
I would love to see how the configurations are implemented.
Thank you.
At the moment caching is set to none
for search api view, this should be set to Search API (tag-based)
.
Sorting is a typical use case when performing seaches, perhaps we could add a sort by difficulty or calories or something similar?
Steps to reproduce:
Would be great if someone could help fixing it. To install this demo site, look at the scripts folder and see the install instructions. A demo of the existing code can be seen on drupalsear.ch and the theme where we make our own changes on top of umami is available in this repository under the docroot/themes/umami_search/ path.
composer 1 is assumed by the dependencies
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- cweagans/composer-patches is locked to version 1.6.7 and an update of this package was not requested.
- cweagans/composer-patches 1.6.7 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- drupal-composer/drupal-scaffold is locked to version 2.6.1 and an update of this package was not requested.
- drupal-composer/drupal-scaffold 2.6.1 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- drupal/console-extend-plugin is locked to version 0.9.3 and an update of this package was not requested.
- drupal/console-extend-plugin 0.9.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 4
- oomphinc/composer-installers-extender is locked to version v1.1.2 and an update of this package was not requested.
- oomphinc/composer-installers-extender v1.1.2 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 5
- drupal/console-extend-plugin 0.9.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- drupal/console 1.9.4 requires drupal/console-extend-plugin ~0 -> satisfiable by drupal/console-extend-plugin[0.9.3].
- drupal/console is locked to version 1.9.4 and an update of this package was not requested.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
cp: directory docroot/themes/contrib does not exist
cp: directory docroot/modules/contrib does not exist
rm: docroot/.ht.sqlite: No such file or directory
scripts/install.sh: line 9: vendor/bin/drush: No such file or directory
scripts/install.sh: line 10: vendor/bin/drush: No such file or directory
scripts/install.sh: line 11: vendor/bin/drush: No such file or directory
scripts/install.sh: line 12: vendor/bin/drush: No such file or directory
scripts/install.sh: line 13: vendor/bin/drush: No such file or directory
scripts/install.sh: line 14: vendor/bin/drush: No such file or directory
scripts/install.sh: line 15: vendor/bin/drush: No such file or directory
Console lists these errors:
Refused to apply style from 'http://drupalsear.ch/libraries/jquery-ui-slider-pips/dist/jquery-ui-slider-pips.min.css?pgsmpp' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
search:992 GET http://drupalsear.ch/libraries/jquery-ui-slider-pips/dist/jquery-ui-slider-pips.min.js?v=1.11.3 net::ERR_ABORTED 404 (Not Found)
search:1 Refused to execute script from 'http://drupalsear.ch/libraries/jquery-ui-slider-pips/dist/jquery-ui-slider-pips.min.js?v=1.11.3' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
drupal.js?v=8.5.7:13 Uncaught Error: no such method 'pips' for slider widget instance
at Function.error (jquery.min.js?v=3.2.1:2)
at HTMLDivElement.<anonymous> (widget-min.js?v=1.12.1:4)
at Function.each (jquery.min.js?v=3.2.1:2)
at r.fn.init.each (jquery.min.js?v=3.2.1:2)
at r.fn.init.a.fn.(/anonymous function) [as slider] (http://drupalsear.ch/core/assets/vendor/jquery.ui/ui/widget-min.js?v=1.12.1:4:1947)
at Object.Drupal.facets.addSlider (slider.js?v=8.5.7:37)
at Object.<anonymous> (slider.js?v=8.5.7:16)
at Function.each (jquery.min.js?v=3.2.1:2)
at Object.attach (slider.js?v=8.5.7:15)
at drupal.js?v=8.5.7:25
error @ jquery.min.js?v=3.2.1:2
(anonymous) @ widget-min.js?v=1.12.1:4
each @ jquery.min.js?v=3.2.1:2
each @ jquery.min.js?v=3.2.1:2
a.fn.(anonymous function) @ widget-min.js?v=1.12.1:4
Drupal.facets.addSlider @ slider.js?v=8.5.7:37
(anonymous) @ slider.js?v=8.5.7:16
each @ jquery.min.js?v=3.2.1:2
attach @ slider.js?v=8.5.7:15
(anonymous) @ drupal.js?v=8.5.7:25
Drupal.attachBehaviors @ drupal.js?v=8.5.7:22
(anonymous) @ dropdown-widget.js?v=8.5.7:90
each @ jquery.min.js?v=3.2.1:2
each @ jquery.min.js?v=3.2.1:2
Drupal.facets.makeDropdown @ dropdown-widget.js?v=8.5.7:27
attach @ dropdown-widget.js?v=8.5.7:13
(anonymous) @ drupal.js?v=8.5.7:25
Drupal.attachBehaviors @ drupal.js?v=8.5.7:22
(anonymous) @ drupal.init.js?v=8.5.7:16
t @ ready.min.js?v=1.0.8:4
setTimeout (async)
Drupal.throwError @ drupal.js?v=8.5.7:12
(anonymous) @ drupal.js?v=8.5.7:27
Drupal.attachBehaviors @ drupal.js?v=8.5.7:22
(anonymous) @ dropdown-widget.js?v=8.5.7:90
each @ jquery.min.js?v=3.2.1:2
each @ jquery.min.js?v=3.2.1:2
Drupal.facets.makeDropdown @ dropdown-widget.js?v=8.5.7:27
attach @ dropdown-widget.js?v=8.5.7:13
(anonymous) @ drupal.js?v=8.5.7:25
Drupal.attachBehaviors @ drupal.js?v=8.5.7:22
(anonymous) @ drupal.init.js?v=8.5.7:16
t @ ready.min.js?v=1.0.8:4
drupal.js?v=8.5.7:13 Uncaught Error: no such method 'pips' for slider widget instance
at Function.error (jquery.min.js?v=3.2.1:2)
at HTMLDivElement.<anonymous> (widget-min.js?v=1.12.1:4)
at Function.each (jquery.min.js?v=3.2.1:2)
at r.fn.init.each (jquery.min.js?v=3.2.1:2)
at r.fn.init.a.fn.(/anonymous function) [as slider] (http://drupalsear.ch/core/assets/vendor/jquery.ui/ui/widget-min.js?v=1.12.1:4:1947)
at Object.Drupal.facets.addSlider (slider.js?v=8.5.7:37)
at Object.<anonymous> (slider.js?v=8.5.7:16)
at Function.each (jquery.min.js?v=3.2.1:2)
at Object.attach (slider.js?v=8.5.7:15)
at drupal.js?v=8.5.7:25
This is what the slider should look like:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.