sunspot.yml 中的路径和 data_path 之间的区别
diff between path and data_path in sunspot.yml
我一直在尝试为我的环境配置我的 Sunspot 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
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'
我一直在尝试为我的环境配置我的 Sunspot 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
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'