简体   繁体   English

当我将 SOLR 重新指向数据库副本时,是否需要重新索引?

[英]Do I need to reindex when I repoint SOLR to the copy of a database?

I am currently using SOLR 6 included with alfresco search services 2.0我目前使用的是 SOLR 6,包含在 alfresco 搜索服务 2.0 中

I have an S3 database that is fully indexed, but I have now made a copy of this database.我有一个完全索引的 S3 数据库,但我现在已经制作了该数据库的副本。 The database is a different one, however all the documents stored inside the database are identical.数据库是不同的,但是存储在数据库中的所有文档都是相同的。 Would repointing the SOLR server to this new database require reindexing?将 SOLR 服务器重新指向这个新数据库是否需要重新索引? Or will SOLR be able to detect the same files and not require any indexing (using the indexes already created from the original database for searching).或者 SOLR 是否能够检测到相同的文件而不需要任何索引(使用已经从原始数据库创建的索引进行搜索)。

Additionally, if I added some more documents to the copy database after duplication, will SOLR just reindex the new documents or the whole database?此外,如果我在复制后向副本数据库添加更多文档,SOLR 会重新索引新文档还是整个数据库? I guess the answer to this depends heavily on the former question.我想这个问题的答案在很大程度上取决于前一个问题。

I would be willing to try this out, but I need to know the outcome to make a very important business decision.我愿意尝试一下,但我需要知道结果才能做出非常重要的商业决策。 Hence I am not able to test it myself.因此我无法自己测试。

  1. Would repointing the SOLR server to this new database require re-indexing?将 SOLR 服务器重新指向这个新数据库是否需要重新索引? No reindexing required untill and unless you have any changes to the copied database and you want those database changes to be made available to the solr server.直到并且除非您对复制的数据库有任何更改并且您希望这些数据库更改可用于 solr 服务器,否则不需要重新索引。

  2. If I added some more documents to the copy database after duplication, will SOLR just re-index the new documents or the whole database?如果我在复制后向副本数据库添加更多文档,SOLR 会重新索引新文档还是整个数据库? If you add new document/records to the copied database then you need to have a mechanism or system which will be doing the index of newly added document/records from the copied database to solr.如果您将新文档/记录添加到复制的数据库,那么您需要有一种机制或系统来将新添加的文档/记录从复制的数据库索引到 solr。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM