• <legend id='wE6tc'><style id='wE6tc'><dir id='wE6tc'><q id='wE6tc'></q></dir></style></legend>
  • <tfoot id='wE6tc'></tfoot>

        <bdo id='wE6tc'></bdo><ul id='wE6tc'></ul>
      <i id='wE6tc'><tr id='wE6tc'><dt id='wE6tc'><q id='wE6tc'><span id='wE6tc'><b id='wE6tc'><form id='wE6tc'><ins id='wE6tc'></ins><ul id='wE6tc'></ul><sub id='wE6tc'></sub></form><legend id='wE6tc'></legend><bdo id='wE6tc'><pre id='wE6tc'><center id='wE6tc'></center></pre></bdo></b><th id='wE6tc'></th></span></q></dt></tr></i><div id='wE6tc'><tfoot id='wE6tc'></tfoot><dl id='wE6tc'><fieldset id='wE6tc'></fieldset></dl></div>

      <small id='wE6tc'></small><noframes id='wE6tc'>

        Lucene 索引备份

        Lucene index backup(Lucene 索引备份)
          <tbody id='A2ZxN'></tbody>
        1. <small id='A2ZxN'></small><noframes id='A2ZxN'>

          <i id='A2ZxN'><tr id='A2ZxN'><dt id='A2ZxN'><q id='A2ZxN'><span id='A2ZxN'><b id='A2ZxN'><form id='A2ZxN'><ins id='A2ZxN'></ins><ul id='A2ZxN'></ul><sub id='A2ZxN'></sub></form><legend id='A2ZxN'></legend><bdo id='A2ZxN'><pre id='A2ZxN'><center id='A2ZxN'></center></pre></bdo></b><th id='A2ZxN'></th></span></q></dt></tr></i><div id='A2ZxN'><tfoot id='A2ZxN'></tfoot><dl id='A2ZxN'><fieldset id='A2ZxN'></fieldset></dl></div>

          <legend id='A2ZxN'><style id='A2ZxN'><dir id='A2ZxN'><q id='A2ZxN'></q></dir></style></legend>
            <bdo id='A2ZxN'></bdo><ul id='A2ZxN'></ul>

                  <tfoot id='A2ZxN'></tfoot>
                  本文介绍了Lucene 索引备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在不使索引脱机(热备份)的情况下备份 lucene 索引的最佳做法是什么?

                  What is the best practice to backup a lucene index without taking the index offline (hot backup)?

                  推荐答案

                  您不必为了备份索引而停止 IndexWriter.

                  You don't have to stop your IndexWriter in order to take a backup of the index.

                  只需使用 SnapshotDeletionPolicy,它可以让您保护"给定的提交点(及其包含的所有文件)不被删除.然后,将该提交点中的文件复制到您的备份,最后释放提交.

                  Just use the SnapshotDeletionPolicy, which lets you "protect" a given commit point (and all files it includes) from being deleted. Then, copy the files in that commit point to your backup, and finally release the commit.

                  如果备份需要一段时间才能运行,这很好——只要您不使用 SnapshotDeletionPolicy 释放提交点,IndexWriter 就不会删除文件(例如,即使它们已经合并在一起).

                  It's fine if the backup takes a while to run -- as long as you don't release the commit point with SnapshotDeletionPolicy, the IndexWriter will not delete the files (even if, eg, they have since been merged together).

                  这为您提供了一致的备份,它是索引的时间点映像,不会阻塞正在进行的索引.

                  This gives you a consistent backup which is a point-in-time image of the index without blocking ongoing indexing.

                  我在 Lucene in Action(第 2 版)中对此进行了介绍,并且有从 http://提供(免费)的书中摘录的论文www.manning.com/hatcher3,使用 Lucene 进行热备份",对此进行了更详细的描述.

                  I wrote about this in Lucene in Action (2nd edition), and there's paper excerpted from the book available (free) from http://www.manning.com/hatcher3, "Hot Backups with Lucene", that describes this in more detail.

                  这篇关于Lucene 索引备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                  How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                  KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                  How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                  How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                  Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)
                • <i id='6bM17'><tr id='6bM17'><dt id='6bM17'><q id='6bM17'><span id='6bM17'><b id='6bM17'><form id='6bM17'><ins id='6bM17'></ins><ul id='6bM17'></ul><sub id='6bM17'></sub></form><legend id='6bM17'></legend><bdo id='6bM17'><pre id='6bM17'><center id='6bM17'></center></pre></bdo></b><th id='6bM17'></th></span></q></dt></tr></i><div id='6bM17'><tfoot id='6bM17'></tfoot><dl id='6bM17'><fieldset id='6bM17'></fieldset></dl></div>
                    <bdo id='6bM17'></bdo><ul id='6bM17'></ul>
                    <legend id='6bM17'><style id='6bM17'><dir id='6bM17'><q id='6bM17'></q></dir></style></legend>

                        <tbody id='6bM17'></tbody>

                      <small id='6bM17'></small><noframes id='6bM17'>

                      • <tfoot id='6bM17'></tfoot>