• <bdo id='MttL8'></bdo><ul id='MttL8'></ul>

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

      1. <tfoot id='MttL8'></tfoot>

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

      2. Lucene 索引和搜索同时进行

        时间:2023-09-29
          <tbody id='p0vgP'></tbody>

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

            • <bdo id='p0vgP'></bdo><ul id='p0vgP'></ul>
            • <tfoot id='p0vgP'></tfoot>

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

              • <legend id='p0vgP'><style id='p0vgP'><dir id='p0vgP'><q id='p0vgP'></q></dir></style></legend>
                  本文介绍了Lucene 索引和搜索同时进行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我想在索引上使用 Lucene 进行搜索.索引经常更改.所以我需要做一些事情来同时搜索和索引.它是 Tomcat 上的 Web 应用程序.我想使用 RAMDeirectory 来提高搜索速度.我不知道该怎么做!

                  I want to search with Lucene on an index. The index is changed frequently. So I need to do something to search and index at the same time. It's a web application on Tomcat. And I want to use RAMDeirectory to increase the searching speed. I don't know how to do it!

                  推荐答案

                  misc Lucene 包中的NRTManager 提供同时搜索和索引的能力.

                  NRTManager in the misc Lucene package provides the ability to search and index at the same time.

                  TrackingIndexWriter writer; // your writer
                  SearcherFactory factory = new SearcherFactory();
                  NRTManager mgr = new NRTManager(writer, factory);
                  

                  查看 NRTManager 方法了解更多信息.

                  Check NRTManager methods for more info.

                  这篇关于Lucene 索引和搜索同时进行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 Hibernate Search 中使用通配符和空格搜索字 下一篇:Lucene - 检索文档中多值字段的所有值

                  相关文章

                  最新文章

                    • <bdo id='QhvZs'></bdo><ul id='QhvZs'></ul>
                  1. <i id='QhvZs'><tr id='QhvZs'><dt id='QhvZs'><q id='QhvZs'><span id='QhvZs'><b id='QhvZs'><form id='QhvZs'><ins id='QhvZs'></ins><ul id='QhvZs'></ul><sub id='QhvZs'></sub></form><legend id='QhvZs'></legend><bdo id='QhvZs'><pre id='QhvZs'><center id='QhvZs'></center></pre></bdo></b><th id='QhvZs'></th></span></q></dt></tr></i><div id='QhvZs'><tfoot id='QhvZs'></tfoot><dl id='QhvZs'><fieldset id='QhvZs'></fieldset></dl></div>
                    <legend id='QhvZs'><style id='QhvZs'><dir id='QhvZs'><q id='QhvZs'></q></dir></style></legend>
                    <tfoot id='QhvZs'></tfoot>

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