【问题标题】:diff between path and data_path in sunspot.ymlsunspot.yml 中 path 和 data_path 之间的差异
【发布时间】:2015-01-19 13:37:15
【问题描述】:

我一直在尝试为我的环境配置我的 Sunspot 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

【问题讨论】:

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


【解决方案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:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-13
    • 2010-10-19
    • 2020-09-15
    • 2014-06-30
    • 2011-11-16
    相关资源
    最近更新 更多