Skip to main content

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 Fletcher17 Feb 2024
How to update installed Python packages
You can use the pip list --outdated command to view a list of installed Python packages that have newer versions available. This command will show you which packages are outdated and can be updated to the latest versions.Here's how you can use itpip list --outdatedThis command will display a list of...
Andrew Fletcher17 Feb 2024
Drupal - Solr working through tm_X3b_en_body error
Having updated Solr, re-indexing wasn't working. The error in the logs wasDrupal\search_api_solr\SearchApiSolrException while indexing item entity:node/2386:en: Solr endpoint http://127.0.0.1:8983/ bad request (code: 400, body: Exception writing document id...
Andrew Fletcher17 Feb 2024
Solr commands
On an Ubuntu 20.02 system with Nginx, you can utilize the following commands to handle Solr:To verify the status of the Solr servicesudo systemctl status solrTo restart the Solr servicesudo systemctl restart solrStart Solrsudo systemctl start solrStop Solrsudo systemctl stop solrEnable Solr (Start...