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

    1. <legend id='gXMsj'><style id='gXMsj'><dir id='gXMsj'><q id='gXMsj'></q></dir></style></legend>

    2. <small id='gXMsj'></small><noframes id='gXMsj'>

      如何使用“like"查询 lucene操作员?

      时间:2023-06-29
    3. <small id='VMogL'></small><noframes id='VMogL'>

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

                <tfoot id='VMogL'></tfoot>
                本文介绍了如何使用“like"查询 lucene操作员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                通配符*只能用在词尾,如user*.

                The wildcard * can only be used at the end of a word, like user*.

                我想用 %user% 之类的查询,怎么做?

                I want to query with a like %user%, how to do that?

                推荐答案

                Lucene提供了ReverseStringFilter 允许像 *user 一样进行前导通配符搜索.它通过以相反的顺序索引所有术语来工作.

                Lucene provides the ReverseStringFilter that allows to do leading wildcard search like *user. It works by indexing all terms in reverse order.

                但我认为没有办法做类似于 'LIKE %user%' 的事情.

                But I think there is no way to do something similar to 'LIKE %user%'.

                这篇关于如何使用“like"查询 lucene操作员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:solr 和 lucene 的区别 下一篇:如何解析/解压缩/解压缩 Nexus 生成的 Maven 存储库索引

                相关文章

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

                  <legend id='6299A'><style id='6299A'><dir id='6299A'><q id='6299A'></q></dir></style></legend>

                2. <tfoot id='6299A'></tfoot>