solrb:Solr +Ruby+ OOP +:red_heart:= Solrb 源码
索尔布 Ruby中面向对象的Solr方法。 目录 安装 将solrb添加到您的Gemfile中: gem 'solrb' 如果要将solrb与solr cloud一起使用: gem 'zk' # required for solrb solr-cloud integration gem 'solrb' 配置 通过环境变量设置Solr URL 使用Solrb的最简单方法是SORL_URL环境变量(其中包含核心名称): ENV[ ' SOLR_URL ' ] = ' http://localhost:8983/solr/demo ' 您还可以使用Solr.configure显式指定solr URL: Solr . configure do | config | config . url = 'http://localhost:8983/solr/demo' end 重要的是要注意
下载地址
用户评论