Skip to content

hrs113355/sunspot_solr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sunspot

sunspot_solr (forked for chinese manipulation)

It's a fork version from sunspot/sunspot. I upgraded the solr instance from 3.5 to 4.3.1 in order to integrate with MMSeg4j (1.9.1). You can find documents for general usage from sunspot/sunspot page.

這是一個 sunspot/sunspot 的 Fork. 主要更新了 sunspot-solr 內的 solr instance 版本 (自 3.5 至 4.3.1)、調整一些設定以及重新修改 solr 原始碼使它能正常與 MMSeg4j (1.9.1) 整合,以正確的中文處理為目標,這邊會有簡單的設置說明,但如果你想對於 sunspot/sunspot 有更進一步的了解請參考他們的文件。

Installation

add below into your Gemfile.

gem 'sunspot_solr', git: '[email protected]:hrs113355/sunspot_solr.git'

Working with sunspot_rails, you can add below

gem 'sunspot_rails', "~> 2.0.0"

or

gem 'sunspot_rails', git: '[email protected]:hrs113355/sunspot_solr.git'

Usage

  • To start (background): rake sunspot:solr:start

  • To run (foreground): rake sunspot:solr:run

  • To stop: rake sunspot:solr:stop

For more general usage, please refer sunspot/sunspot.

Changes

  • Update solr instance to 4.3.1 (To integrage with MMSeg4j 1.9.1)

  • Forced mm = 100% and default.Operator=AND to solve problem with tokenized chinese words indexing and querying. (For more, see #1)

Todos

  • Default built-in MMSeg4j
  • Default configuration for chinese manipulation
  • More flexible way to solve tokenized chinese words indexing and querying problem.

License

Sunspot is distributed under the MIT License, copyright (c) 2008-2013 Mat Brown

About

Solr-powered search for Ruby objects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 91.6%
  • XSLT 3.7%
  • JavaScript 3.2%
  • Shell 0.5%
  • CSS 0.5%
  • HTML 0.4%
  • Batchfile 0.1%