<tfoot id='Ui1GL'></tfoot>
    <legend id='Ui1GL'><style id='Ui1GL'><dir id='Ui1GL'><q id='Ui1GL'></q></dir></style></legend>

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

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

    2. 为什么 Lucene 不支持对现有文档进行任何类型的更

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

            <bdo id='MOaJ5'></bdo><ul id='MOaJ5'></ul>

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

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

                本文介绍了为什么 Lucene 不支持对现有文档进行任何类型的更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我的用例涉及索引一个 Lucene 文档,然后在以后的多个场合添加指向该现有文档的术语,而不是为每个新术语删除和重新添加整个文档(因为性能,而不是保留原始条款).

                My use case involves index a Lucene document, then on multiple future occasions add terms that point to this existing doc, that's without deleting and re-adding the entire document for each new term (because of performance, and not keeping the original terms).

                我知道文档不能真正更新.我的问题是为什么?

                I do know that a document can not be truly updated. My question is why?

                或者更准确地说,为什么不支持所有形式的更新(术语、存储字段)?
                为什么不可能添加另一个术语来指向现有文档 - 从技术上讲:所需要的不仅仅是将现有的文档 ID 放在术语的发布列表中.为什么这么难?是否有一些不可变的统计数据?

                Or more precisely, why are all forms of updates (terms, stored fields) not supported?
                Why it's not possible to add another term to point to an existing document - technically: isn't all that's needed is to have the existing doc Id placed in the posting list of the term. Why is that hard? Is there some immutable statistics that are in the way?

                是否有任何解决方法可以支持我将术语(索引字段)添加到现有文档的用例?

                Are there any workarounds for supporting my usecase of adding a term (indexed field) to an existing doc?

                推荐答案

                我知道文档不能真正更新.我的问题是为什么?

                I do know that a document can not be truly updated. My question is why?

                Gili,编辑文档会导致相关术语发布发生变化,由于术语发布列表结构,这是有问题的.过帐列表被排序并按顺序存储在内存中.因此,要将文档添加到术语的发布列表中,您必须为其提供更高的 doc id,这是通过删除并重新索引整个文档来完成的.

                Gili, editing a document will cause changes in the related terms postings and this is problematic due to to the terms posting-list structure. The posting-list is sorted and stored sequential in memory. Thus to add a document to a term's posting-list you have to give it a higher doc id this is done by deleting and re-index the entire document.

                这篇关于为什么 Lucene 不支持对现有文档进行任何类型的更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:Lucene 词干分离器的区别:EnglishStemmer、PorterStemme 下一篇:在 Lucene 5.0 中按字母顺序排序字符串字段

                相关文章

                最新文章

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

                1. <small id='XtXay'></small><noframes id='XtXay'>

                  <legend id='XtXay'><style id='XtXay'><dir id='XtXay'><q id='XtXay'></q></dir></style></legend>