簡體   English   中英

太陽黑子solr:path和solr_home之間的功能區別是什么?

[英]sunspot solr: What is the functional difference between path and solr_home?

我想知道是否有人可以教我path和* solr_home *之間的功能差異。 它們可以采用哪種路徑(我知道路徑不能以文件系統路徑作為參數)。

我當前的生產配置是:

port: 8080
path: /solr/
solr_home: /usr/share/apache-solr-3.3.0/solr/

我的印象是索引信息存儲在我的rails應用程序/ solr /目錄中,並且每次cap部署都會刪除它們,但事實並非如此,solr索引文件存儲在哪里? 那個solr_home路徑做什么?

請有人清除我的疑慮。

提前致謝

solr主目錄應該包含您的solr實例。 它具有如下結構:

solr_home  
   |_  solr.xml (optional: multiple core configuration etc.)  
   |_  conf (directory containing the solr configuration)  
         |_  solrconfig.xml  
         |_  schema.xml  
   |_  data (default location for the index)  

如果僅指定solr主頁而不進行任何附加配置,則應該在solr_home / data目錄中找到索引。

希望這可以幫助。 讓我知道您是否需要更多信息。

根據https://github.com/sunspot/sunspot/blob/master/sunspot_rails/lib/sunspot/rails/configuration.rb ,路徑是Solr servlet的位置。 solr_home是Sunspot :: Rails希望具有config,data和pids目錄的位置。 請注意,還有一個名為data_path的東西,用於存儲和訪問Solr索引的位置。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM