<bdo id='60r0m'></bdo><ul id='60r0m'></ul>

    <small id='60r0m'></small><noframes id='60r0m'>

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

      Lucene JDBC 目录

      Lucene JDBC Directory(Lucene JDBC 目录)
      1. <small id='QAObY'></small><noframes id='QAObY'>

          <tfoot id='QAObY'></tfoot>

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

            <legend id='QAObY'><style id='QAObY'><dir id='QAObY'><q id='QAObY'></q></dir></style></legend>
              <tbody id='QAObY'></tbody>
                <bdo id='QAObY'></bdo><ul id='QAObY'></ul>
                本文介绍了Lucene JDBC 目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用 Lucene 3.5.0 在我的网站上做一些基本的搜索工作.我想将索引存储在 Mysql 数据库的 JDBC 目录中.我打算使用 Compass 项目来执行此操作,但经过更多研究并实际尝试了代码,我发现 Compass 是一个死项目,它不再与当前版本的 Lucene 兼容.

                I am using Lucene 3.5.0 to do some basic search stuff on my website. I want to store the index in a JDBC Directory in my Mysql Database. I was going to use the Compass Project to do this, but with some more research and actually trying the code I have found that Compass is a dead project and it no longer is compatible with the current version of Lucene.

                还有其他选项可以将我的索引存储在 JDBC 目录中吗?Lucene 不提供这个原生是有原因的吗?出于某种原因,在 HDD 上存储是更好的选择吗?

                Is there another option to store my index in a JDBC Directory? Is there a reason Lucene does not offer this native? Is storing on the HDD a better option for some reason?

                推荐答案

                来自 常见问题解答:

                Lucene 不支持开箱即用的功能,但有几个人实现了 JdbcDirectory 的.到目前为止,我们看到的报告表明,这种实现的性能不是很好,但它是可行的.

                Lucene does not support that functionality out of the box, but several people have implemented JdbcDirectory's. The reports we have seen so far indicate that performance with such implementations is not great, but it is doable.

                另一种方法是将索引作为 BLOB 存储在数据库中,如果您有多个节点运行您的应用程序,这可能会很有用.如果为 BLOB 添加时间戳,每个节点都可以检查索引是否已更新并从数据库中重新创建索引文件.

                Another approach would be to store the index in the database as a BLOB, this could be useful if you have multiple nodes running your application. If you add a timestamp to the BLOB each node could check whether the index has been updated and recreate the index file from the DB.

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

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

                相关文档推荐

                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如何按不区分大小写进行搜索)
                <legend id='ruBgV'><style id='ruBgV'><dir id='ruBgV'><q id='ruBgV'></q></dir></style></legend>

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

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

                          <tbody id='ruBgV'></tbody>

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