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操作员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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如何按不区分大小写进行搜索)
                  <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>