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操作员?

      How to query lucene with quot;likequot; operator?(如何使用“like查询 lucene操作员?)
    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操作员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                  <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>

                        <tbody id='6299A'></tbody>
                      • <tfoot id='6299A'></tfoot>