Blacklight

Blacklight为任何Solr(

Github星跟踪图

Blacklight是一个开源的Solr用户界面发现平台。 您可以使用Blacklight来启用搜索和浏览您的收藏。 Blacklight使用 Apache Solr 搜索引擎搜索全文和/或元数据。

Blacklight具有高度可配置的Ruby on Rails前端。 Blacklight最初是在弗吉尼亚大学图书馆开发的,并在Apache 2.0许可下公开。

安装

将Blacklight添加到您的 Gemfile :

 gem "blacklight"

运行将复制一些初始模板,迁移,路线和配置的安装生成器:

rails generate blacklight:install

文档,信息和支持

依赖关系

  • Ruby 2.1+
  • Bundler
  • Rails 5.0+

配置Apache Solr

您还需要一些关于Blacklight如何运行 Apache Solr 的信息,您可以在README_SOLR 中找到它。

主要指标

概览
名称与所有者projectblacklight/blacklight
主编程语言Ruby
编程语言Ruby (语言数: 8)
平台Linux, Mac, Windows
许可证Other
所有者活动
创建于2009-10-30 20:03:30
推送于2025-07-18 20:52:37
最后一次提交
发布数294
最新版本名称v9.0.0.beta5 (发布于 2025-07-15 09:59:05)
第一版名称v2.4.0 (发布于 2009-11-02 17:23:48)
用户参与
星数772
关注者数67
派生数255
提交数5.9k
已启用问题?
问题数1260
打开的问题数119
拉请求数2126
打开的拉请求数38
关闭的拉请求数265
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

Blacklight

Build Status Gem Version Test Coverage

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:

gem "blacklight"

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

rails generate blacklight:install

Documentation, Information and Support

Dependencies

  • Ruby 2.2+
  • Bundler
  • Rails 5.1+

Configuring Apache Solr

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

Building the javascript

The javascript is built by npm from sources in app/javascript into a bundle
in app/assets/javascripts/blacklight/blacklight.js. This file should not be edited
by hand as any changes would be overwritten. When any of the javascript
components in the gem are changed, this bundle should be rebuild with the
following steps:

  1. Install npm
  2. run npm install to download dependencies
  3. run npm run js-compile-bundle to build the bundle
  4. run npm publish to push the javascript package to https://npmjs.org/package/blacklight-frontend

Using the javascript

Blacklight ships with Javascript that can be compiled either by Webpacker or by
Sprockets. To use Webpacker see the directions at https://github.com/projectblacklight/blacklight/wiki/Using-Webpacker-to-compile-javascript-assets

If you prefer to use Sprockets, simply run the install generator, which will run the assets generator. For details see https://github.com/projectblacklight/blacklight/wiki/Using-Sprockets-to-compile-javascript-assets