Andrew Fletcher published: 5 August 2021 2 minutes read
Steps to get the Solr date range widget working.
Steps
Enable the Facets Range Widget sub-module.
Install the jQuery-ui-Slider-Pips library, as described in the README.txt file in that sub-module's folder. After playing with this for sometime to get it working, I found the best way to install is via composer.
composer require "bower-asset/jquery-ui-slider-pips:^1.11"
However, calling this command could produce the following error
[InvalidArgumentException] Could not find a matching version of package bower-asset/jquery-ui-slider-pips. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).
To resolve this issue, in your composer.json file add the following lines to the repositories area:
{ "type": "composer", "url": "https://asset-packagist.org" },
So it will now appear as
"repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" }, { "type": "composer", "url": "https://asset-packagist.org" },
This action will install the latest version of range slider and required components. The response to this request will be
./composer.json has been updated Running composer update bower-asset/jquery-ui-slider-pips > DrupalProject\composer\ScriptHandler::checkComposerVersion Loading composer repositories with package information Updating dependencies Lock file operations: 3 installs, 0 updates, 0 removals - Locking bower-asset/jquery (3.6.0) - Locking bower-asset/jquery-ui (1.12.1) - Locking bower-asset/jquery-ui-slider-pips (v1.11.4) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 3 installs, 0 updates, 0 removals - Downloading bower-asset/jquery (3.6.0) - Downloading bower-asset/jquery-ui (1.12.1) - Downloading bower-asset/jquery-ui-slider-pips (v1.11.4) - Installing bower-asset/jquery (3.6.0): Extracting archive - Installing bower-asset/jquery-ui (1.12.1): Extracting archive - Installing bower-asset/jquery-ui-slider-pips (v1.11.4): Extracting archive
Related articles
Andrew Fletcher
•
16 Jul 2024
How to efficiently use find and replace in VS Code
When it comes to text editing, Visual Studio Code (VS Code) is one of the most popular tools among developers. One of its powerful features is the Find and Replace function, which can save you countless hours of manual editing. In this article, we'll explore how to use this function to replace all...
Andrew Fletcher
•
04 Jun 2024
No results showing for your Solr instance - solr.service: Failed with result 'exit-code'
When Solr is displaying results on the site, first step is to log in the server and check its status● solr.service - LSB: Controls Apache Solr as a Service
Loaded: loaded (/etc/init.d/solr; generated)
Active: failed (Result: exit-code) since Wed 2024-04-17 23:22:52 UTC; 6h ago
...
Andrew Fletcher
•
04 Jun 2024
Checking if a file exists using command line queries in Ubuntu with Nginx
On a server directory with over 100,000 PDF files, I needed to verify the existence of specific documents. Whether there are a few hundred or whatever the number of files, this article explores the practical use of command-line tools to quickly ascertain whether a file is present. In the area of...