在sunspot.yml中路径和data_path之间的差异

时间:2015-01-19 13:37:15

标签: ruby-on-rails ruby sunspot-rails

我一直在尝试为我的环境配置我的太阳黑子Solr。我在pathdata_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

1 个答案:

答案 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'

data_path :

Path: