我一直在尝试为我的环境配置我的太阳黑子Solr。我在path
和data_path
之间感到困惑,任何人都可以给我区别以及如何使用它们。
我一直在指这个, https://github.com/sunspot/sunspot/blob/master/sunspot_rails/lib/sunspot/rails/configuration.rb
production:
solr:
hostname: localhost
port: 8983
log_level: WARNING
path: /solr/production
data_path: /some_path
# read_timeout: 2
# open_timeout: 0.5
development:
solr:
hostname: localhost
port: 8982
log_level: INFO
#path: /solr/development
test:
solr:
hostname: localhost
port: 8981
log_level: WARNING
path: /solr/test
答案 0 :(得分:1)
Path: The url path to the Solr servlet (useful if you are running multicore).
# Default '/solr/default'.
Data Path: the path to store lucene index data files.
#Default '#{Rails.root}/solr/data'