ApacheSolr Numeric Sliders

Categories

Component ID

1474894

Component name

ApacheSolr Numeric Sliders

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

git clone http://git.drupal.org:sandbox/AndreasRadloff/1474894.git apachesolr_numeric_sliders

This module extends the Apache Solr module. It indexes number fields (currently assumes integer type) and provides a block for each selected field with a jQuery UI slider that can be used to filter on a range of values.

What this module does:

  • Indexes all number fields that have been selected on the admin page as single value integers.
  • Provides an admin page where fields can be selected for indexing.
  • Provides a block for each field that can be activated on the 'Enabled facets' page in Solr config.
  • Each block have a configured max and min value on its block configuration page.

Todo

  • Add support for float numbers
  • Add support for multi-value fields
  • Auto-set max-and min value for blocks in a performance friendly way (on cron?).
  • Add support for title-field

After activating the module you will have to flush the Solr index and rebuild it.

This module will work with the 6.x-2.x branch of the Apache Solr module, and have not been tested with other versions.

This project borrows heavily from these two projects:
http://drupal.org/sandbox/brycesenz/1258510
http://drupal.org/project/apachesolr_decimal

It partly duplicates the functionality of the latter but takes different ui approaches and handles the search differently. A question about merging the projects have been posted in the issue cue.