sunspot solr undefined field type

前端 未结 4 817
渐次进展
渐次进展 2021-01-22 07:48

I\'m having a problem with my sunspot and solr. In development it worked like charme but in production I get the following error out of my rails production log:

RSolr:

4条回答
  •  爱一瞬间的悲伤
    2021-01-22 08:37

    For Solr 4.7, copy schema.xml and solrconfig.xml from your_app/solr/conf to /opt/solr/solr/collection1 (or whatever your solr path is) and if still not working, make sure that your config/sunspot.yml is something like:

    production:
      solr:
        hostname: localhost
        port: 8983
        log_level: WARNING
        path: /solr/collection1
        # read_timeout: 2
        # open_timeout: 0.5
    

    It is recommended to create another core (my_core) from the solr web interface, copy schema.xml and solrconfig.xml to that folder and point path to /solr/my_core

提交回复
热议问题