2013-04-01 8 views
11

皆さんはうまくいきたいと思います!私はあなたの入力を探している奇妙な問題に悩まされています。Solr with Rails - rake sunspot:レインインデックスは動作していません

私の問題は、次のとおりです。

私はSolrのインデックスの再作成をしていたときに、それはエラーの下に私を与えているカピストラーノ、使用して生産に自分のアプリケーションをデプロイした後:もっとそれを調べるために

を、私は太陽黒点の生産ログを見て、私は見た:ログから

INFO: Creating SolrCore 'collection1' using instanceDir: /data/APP_NAME/releases/20130325112326/solr/collection1 
Apr 1, 2013 2:38:16 AM org.apache.solr.core.SolrResourceLoader <init> 
INFO: new SolrResourceLoader for directory: '/data/APP_NAME/releases/20130325112326/solr/collection1/' 
Apr 1, 2013 2:38:16 AM org.apache.solr.core.CoreContainer recordAndThrow 
SEVERE: Unable to create core: collection1 
org.apache.solr.common.SolrException: Could not load config for solrconfig.xml 
    at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:991) 
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051) 
    at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:634) 
    at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
    at java.lang.Thread.run(Thread.java:662) 
Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or '/data/APP_NAME/releases/20130325112326/solr/collection1/conf/', cwd=/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr 
    at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:318) 
    at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:283) 
    at org.apache.solr.core.Config.<init>(Config.java:103) 
    at org.apache.solr.core.Config.<init>(Config.java:73) 
    at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:117) 
    at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:989) 
    ... 11 more 
Apr 1, 2013 2:38:16 AM org.apache.solr.common.SolrException log 
SEVERE: null:org.apache.solr.common.SolrException: Unable to create core: collection1 
    at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:1672) 
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1057) 
    at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:634) 
    at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
    at java.lang.Thread.run(Thread.java:662) 
Caused by: org.apache.solr.common.SolrException: Could not load config for solrconfig.xml 
    at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:991) 
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051) 
    ... 10 more 
Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or '/data/APP_NAME/releases/20130325112326/solr/collection1/conf/', cwd=/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr 
    at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:318) 
    at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:283) 
    at org.apache.solr.core.Config.<init>(Config.java:103) 
    at org.apache.solr.core.Config.<init>(Config.java:73) 
    at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:117) 
    at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:989) 
    ... 11 more 
Apr 1, 2013 2:38:16 AM org.apache.solr.servlet.SolrDispatchFilter init 
INFO: user.dir=/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr 
Apr 1, 2013 2:38:16 AM org.apache.solr.servlet.SolrDispatchFilter init 
INFO: SolrDispatchFilter.init() done 

、再インデックスが原因で2つの理由で失敗していることは明らかである。

012コアを作成することができません

A.:以下collection1
B.は、上記のエラーに基づいて、クラスパス

にリソース「solrconfig.xml」を見つけることができませんが、私が試したのトリックは、以下のとおりです。

A. solrのフォルダ権限を確認しました
B. solr内で手動でcollection1を作成し、/ solr/collection1/conf内のsolrconfig.xmlをコピーしました。
C. /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solrからlibとconfフォルダをコピーし、APP_NAME/solr/sunspot_railsフォルダに貼り付けました。

しかし、解決策はありませんでした。 :-(

は親切に示唆

[UPDATED]:私のGemfileには次のようになります。

gem "sunspot", "~> 1.3.3" 
gem 'sunspot_rails', '~> 1.3.0' 
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git' 
gem 'sunspot_cell_jars', :git => 'https://github.com/mrcsparker/sunspot_cell_jars.git' 
gem 'sunspot_solr', :git => "git://github.com/sunspot/sunspot.git" 

[UPDATED]:私は、以下の手順で試してみました:2013年4月4日の時点ではしかし、まだ運ません: 私は正しい方向に向かっていた場合、多分これはあなたが理解するのに役立ちます、詳細を確認してください

1. Stopped solr <br /> 
${PATH_TO_APP}: bundle exec rake sunspot:solr:stop 

2. remove solr folder 
${PATH_TO_APP}: rm -rf solr 

3. Start solr 
${PATH_TO_APP}: bundle exec rake sunspot:solr:start 
--backtrace 
java version "1.6.0_30" 
Java(TM) SE Runtime Environment (build 1.6.0_30-b12) 
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode) 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/solrconfig.xml => /data/APP_NAME/releases/20130402102051/solr/conf/solrconfig.xml 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/spellings.txt => /data/APP_NAME/releases/20130402102051/solr/conf/spellings.txt 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/synonyms.txt => /data/APP_NAME/releases/20130402102051/solr/conf/synonyms.txt 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/elevate.xml => /data/APP_NAME/releases/20130402102051/solr/conf/elevate.xml 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/admin-extra.html => /data/APP_NAME/releases/20130402102051/solr/conf/admin-extra.html 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/schema.xml => /data/APP_NAME/releases/20130402102051/solr/conf/schema.xml 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/protwords.txt => /data/APP_NAME/releases/20130402102051/solr/conf/protwords.txt 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/scripts.conf => /data/APP_NAME/releases/20130402102051/solr/conf/scripts.conf 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/stopwords.txt => /data/APP_NAME/releases/20130402102051/solr/conf/stopwords.txt 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/conf/mapping-ISOLatin1Accent.txt => /data/APP_NAME/releases/20130402102051/solr/conf/mapping-ISOLatin1Accent.txt 
Copying /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bundler/gems/sunspot-87e29212527f/sunspot_solr/solr/solr/solr.xml => /data/APP_NAME/releases/20130402102051/solr 
Successfully started Solr ... 

4. Ensure config file is correct (solr/conf/schema.xml) 
I used this link for schema.xml: http://stackoverflow.com/a/14700918/649868 and overwrite schema.xml file under {PATH_TO_APP}/solr/conf 

5. Run Sunspot re-index 
${PATH_TO_APP}: bundle exec rake sunspot:reindex 

--backtrace 
rake aborted! 
RSolr::Error::Http - 404 Not Found 
Error:  Not Found 

Request Data: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:JobSeeker</query></delete>" 

一つI N。私は、バンドルのexecすくい黒点を実行したときにoticedは、次のとおりです。Solrの:

SEVERE: null:org.apache.solr.common.SolrException: Unable to create core: development 
Caused by: org.apache.solr.common.SolrException: Cannot create directory: /data/APP_NAME/current/solr/data/index 

しかし、私が訪れた時に、このディレクトリインデックスフォルダがありました:コマンドを起動して、ログファイルをチェックし、私はこれを見つけました。

solrはproductionモードでsolr.xmlファイルを作成しますが、ステージング環境には存在しません。 solr.xmlを参照してください(変更後):

<?xml version="1.0" encoding="UTF-8" ?> 
<solr persistent="true"> 
<cores adminPath="/admin/cores" host="${host:}" hostPort="${jetty.port:}"> 
    <core name="default"  instanceDir="/data/APP_NAME/current/solr" dataDir="/data/APP_NAME/current/solr/data"/> 
    <core name="development" instanceDir="/data/APP_NAME/current/solr" dataDir="/data/APP_NAME/current/solr/data"/> 
    <core name="test"  instanceDir="/data/APP_NAME/current/solr" dataDir="/data/APP_NAME/current/solr/data"/> 
</cores> 
</solr> 

これについてのご意見はありますか?

ありがとうございました。

[UPDATED]:

** Invoke sunspot:reindex (first_time) 
** Invoke environment (first_time) 
** Execute environment 
** Execute sunspot:reindex 
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile 

rake aborted! 
RSolr::Error::Http - 404 Not Found 
Error:  Not Found 

Request Data: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete>query>type:OccupationData</query></delete>" 
Backtrace: /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:230:in `adapt_response' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:167:in `execute' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:161:in `send_and_receive' 
(eval):2:in `post' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:67:in `update' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:131:in `delete_by_query' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/indexer.rb:55:in `remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session.rb:181:in `block in remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session.rb:181:in `each' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session.rb:181:in `remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:230:in `adapt_response' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:167:in `execute' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:161:in `send_and_receive' 
(eval):2:in `post' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:67:in `update' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.8/lib/rsolr/client.rb:131:in `delete_by_query' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/indexer.rb:55:in `remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session.rb:181:in `block in remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session.rb:181:in `each' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session.rb:181:in `remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session_proxy/retry_5xx_session_proxy.rb:17:in `method_missing' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot.rb:464:in `remove_all' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot_rails-1.3.3/lib/sunspot/rails/searchable.rb:178:in `solr_remove_all_from_index' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot_rails-1.3.3/lib/sunspot/rails/searchable.rb:197:in `solr_reindex' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot_rails-1.3.3/lib/sunspot/rails/tasks.rb:58:in `block (3levels) in <top (required)>' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/class_set.rb:16:in `each' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot-1.3.3/lib/sunspot/class_set.rb:16:in `each' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/sunspot_rails-1.3.3/lib/sunspot/rails/tasks.rb:57:in `block (2levels) in <top (required)>' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain' 
/usr/lib64/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `each' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rake-10.0.4/bin/rake:33:in `<top (required)>' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bin/rake:19:in `load' 
/data/APP_NAME/shared/bundled_gems/ruby/1.9.1/bin/rake:19:in `<main>' 
Tasks: TOP => sunspot:reindex 

$ RAILS_ENV=production bundle exec rake sunspot:reindex --trace 

が、私はこれを得た:私は私が行うとき、本番インスタンス上で、その後、新鮮なビルドを展開第5回 - 4月 - 2013 のとおり

class OccupationData < ActiveRecord::Base 
    attr_accessible :onetsoc_code, :title, :description 

    searchable :auto_index => false do 
     text :title 
     text :description 
    end 
end 

すべての黒点熊手を実行しようとした:

以下は私のモデルであり、指定RAILS_ENV =生産・クロスによってタスクがSOLRはROOTで実行されている場合はチェックしたり、展開、およびこれだ:

/data/APP_NAME/current $ ps -ef | grep solr 
deploy 2342  1 0 Apr04 ?  00:00:30 /usr/lib/jvm/sun-jdk-1.6/bin/java -Djetty.port=8983 -Dsolr.data.dir=/data/APP_NAME/releases/20130404095808/solr/data/production -Dsolr.solr.home=/data/APP_NAME/releases/20130404095808/solr -Djava.util.logging.config.file=/tmp/logging.properties20130404-2342-17k2tsp -jar start.jar 
deploy 9770 9461 0 06:42 pts/0 00:00:00 grep --colour=auto solr 

それはSOLRがデプロイ上で実行されていることを私に告げます。 sunspot:reindexがログレベル情報も生成していないため、私はSOLRログを提供する状況でもありません。 :-(

9日 - 4月 - 2013 - [UPDATE] [SOLUTION]

こんにちはみんな、インデックスの再作成でたくさん苦労した後

、私は最終的にこれの解決策を見つけました。エラーは、Gemfileに言及した間違った宝石に発生した

ここでは私のGemfileの古いコピーです:。

gem "sunspot", "~> 1.3.3" 
gem 'sunspot_rails', '~> 1.3.0' 
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git' 
gem 'sunspot_cell_jars', :git => 'https://github.com/mrcsparker/sunspot_cell_jars.git' 
gem 'sunspot_solr', :git => "git://github.com/sunspot/sunspot.git" 

は、私はこのリンクを参照した:https://github.com/mrcsparker/sunspot_cell_jars、私はそれを動作させるために更新されたsunspot_solr gemを使用しなければならないことを知りました。

ので、私は使用しています:

gem 'sunspot_solr', :git => "https://github.com/mrcsparker/sunspot.git" 

、その後、私は、「gコマンドをレール」とするときは、黒点を走って再びJARファイルを作成:すべてが働いたインデックスを再作成します。これが誰かを助けることを願っています。

+0

オブジェクトの通常のインデックス作成は機能していますか? – bdares

+1

いいえうまくいきません。しかし、私はsolrを始めることはできますが、インデックス作成の際は途切れます。 –

+0

solrサーバーをセットアップしたか、 'solr-rails'バンドル版を使用しようとしていますか?後者の場合、プロダクションモードでは動作しません。 – bdares

答えて

7

エラーロギング時に同じ問題が多少異なります。私の場合、それはのようだった:私が使用している何

2013-07-18 10:26:47.750:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet 
Null identity service, trying login service: null 
Finding identity service: null 

ので、Gemfileに、より優れた管理インターフェイスを持っていSolrの4、次のとおりです。

gem 'sunspot_solr', github: 'sunspot/sunspot', branch: 'master' 
gem 'sunspot_rails', github: 'sunspot/sunspot', branch: 'master' 

そして、それはそれだ、これ以上。ちょうどgithubに気づく:part。 私はあなたが何をしたかのようなものでした:それは仕事を始め、その後、Solrのディレクトリを削除し、その後、

bundle install 

、最終的に

rails generate sunspot_rails:install 

、その後、

bundle exec rake sunspot:solr:start 

とを。

次に、私は認めざるを得ない

bundle exec rake sunspot:reindex 

一つのことを実行して、私はSolrの4持っているので、上記の手順の前に、私はこれらのfrom hereと私のxmlファイルを置き換えていることです。これが重要かどうかは不明です。

これは誰かを助けることを望みます。

+3

あなたのXMLファイルはどこにありますか?あなたはそれらを生成するのですか?どうやって?ありがとう。 – juanpastas

+0

私はバンドルのexec rakeで走っていると思うのですが、ちょうどレーキの代わりに私のためにそれをしました –

+0

ありがとう!これはJRubyを使ってsolrを使うという私の問題のために働いていました。 – halorium

関連する問題