Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

blacklight

> 后端框架
Open source

Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index.

791 stars0 likes1 views
WebsiteGitHub

About

Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index.

Blacklight

Branches

  • The main branch is currently where we do new development for the upcoming 9.0 release.
  • The 8.x series is on the release-8.x branch
  • The 7.x series is on the release-7.x branch
  • The 6.x series is on the release-6.x branch

Description

Blacklight is an open source Solr user interface discovery platform. You can use Blacklight to enable searching and browsing of your collections. Blacklight uses the Apache Solr search engine to search full text and/or metadata. Blacklight has a highly configurable Ruby on Rails front-end. Blacklight was originally developed at the University of Virginia Library and is made public under an Apache 2.0 license.

Installation

Add Blacklight to your Gemfile:

ruby
bundle add blacklight

Run the install generator which will copy over some initial templates, migrations, routes, and configuration:

bash
bin/rails generate blacklight:install

Documentation, Information and Support

  • Project Homepage
  • Developer Documentation
  • Quickstart Guide
  • Testing and Developing Blacklight
  • Issue Tracker
  • Support

Browser Compatibility

Blacklight assumes a modern browser with support for Baseline 2023. This means we explicitly do not support Internet Explorer.

Dependencies

  • Ruby 3.2+
  • Ruby on Rails 7.2+

Blacklight aims to support the currently supported versions of Ruby and the supported versions of Ruby on Rails. We aim to keep our test configuration up to date with these supported versions.

Contributing Code

Code contributions are always welcome, instructions for contributing can be found at CONTRIBUTING.md.

Configuring Apache Solr

You'll also want some information about how Blacklight expects Apache Solr to run, which you can find in Solr Configuration

Building the javascript

The javascript includes some derivative combination files that are built at release time, that can be used by some javascript pipelines. The derivatives are placed at app/assets/javascripts/blacklight, and files there should not be edited by hand.

When any of the javascript components in the gem are changed, you may have to rebuild these derivative files.

  1. Install npm
  2. run bundle exec rake build:npm (just runs npm install to download dependencies and npm run prepare to build the bundle)

Releasing versions

You always need to release both the rubygem and npm package simultaneously. For more information, see wiki

Summary of technical steps:

  1. Make sure ./package.json and ./VERSION files have correct and matching versions.
  2. Release ruby gem with bundle exec rake release
  3. Release npm package
  4. Build derivative products included in release with bundle exec rake build:npm
  5. Publish with npm publish.

Issues· 196 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rubyblacklightdiscovery-interfacerails-engineruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架