SOLR:只是将数据文件上传到新服务器而不是数据导入?
我可能不太了解 SOLR 内部是如何工作的,但是当我尝试在另一台服务器中复制 SOLR 服务器时,我首先尝试将数据文件(数据文件夹)复制到新服务器,看看是否有效。好吧,它确实有效......
我一直认为我需要手动运行数据导入来设置 SOLR 服务器,但显然基于我所看到的,我没有?
I probably don't know much about how SOLR works internally, but as I was trying to replicate a SOLR server in another server, I first tried to copy the data files (data folder) to the new server, and see if that worked. Well it did worked...
I always thought I needed to run data import manually to setup the SOLR server, but apparently based on what I see I don't?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Solr 复制是使用 HTTP 传输方法而不是基于文件的复制的索引文件复制操作。
使用内置复制方案的优点是您可以摆脱文件系统锁定等潜在问题。您还将获得
optimize
请求的传播,这可能对依赖它的组件有益,例如拼写检查器buildOnOptimize
。与例如 rsync 相比,它的性能也很好。Solr replication is a copy operation of index files using HTTP transport method rather than file based copy.
The advantage of using the built in replication scheme is that you rid yourself of potential problems such as filesystem locks. You will also get propagation of
optimize
requests which might be beneficial for components which might depend on it, such as the spellcheckersbuildOnOptimize
. Also it holds up well in performance compared to e.g.,rsync
.