久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

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

        <bdo id='FRjsI'></bdo><ul id='FRjsI'></ul>
    1. <tfoot id='FRjsI'></tfoot>

      如何在我的 Lucene 應用程序中使用 ASCIIFoldingFilt

      How do I use ASCIIFoldingFilter in my Lucene app?(如何在我的 Lucene 應用程序中使用 ASCIIFoldingFilter?)

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

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

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

              <tbody id='rYoiC'></tbody>
          1. <tfoot id='rYoiC'></tfoot>

                本文介紹了如何在我的 Lucene 應用程序中使用 ASCIIFoldingFilter?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我有一個從索引中搜索的標準 Lucene 應用程序.我的索引包含很多法語術(shù)語,我想使用 ASCIIFoldingFilter.

                I have a standard Lucene app which searches from an index. My index contains a lot of french terms and I'd like to use the ASCIIFoldingFilter.

                我已經(jīng)做了很多搜索,但我不知道如何使用它.構(gòu)造函數(shù)接受一個 TokenStream 對象,當您向它發(fā)送一個字段時,我是否調(diào)用分析器上檢索 TokenStream 的方法?那我該怎么辦?有人可以指出一個使用 TokenFilter 的例子嗎?謝謝.

                I've done a lot of searching and I have no idea how to use it. The constructor takes a TokenStream object, do I call the method on the analyzer that retrieves a TokenStream when you send it a field? Then what do I do? Can someone point me to an example where a TokenFilter is being used? Thanks.

                推薦答案

                令牌過濾器 - 就像 ASCIIFoldingFilter - 在它們的基礎(chǔ)上是一個 TokenStream,所以它們是分析器主要通過使用以下方法返回的東西:

                The token filters - like the ASCIIFoldingFilter - are at their base a TokenStream, so they are something that the Analyzer returns mainly by use of the following method:

                public abstract TokenStream tokenStream(String fieldName, Reader reader);
                

                如您所見,過濾器將 TokenStream 作為輸入.它們的作用類似于包裝器,或者更準確地說,類似于輸入的 裝飾器.這意味著它們增強了包含的 TokenStream 的行為,同時執(zhí)行它們的操作和包含的輸入的操作.

                As you have noticed, the filters take a TokenStream as an input. They act like wrappers or, more correctly said, like decorators to their input. That means they enhance the behavior of the contained TokenStream, performing both their operation and the operation of the contained input.

                您可以在這里找到解釋.它不是直接引用 ASCIIFoldingFilter 但同樣的原則適用.基本上,您創(chuàng)建一個自定義分析器,其中包含類似的內(nèi)容(精簡示例):

                You can find an explanation here. It is not directly refering to an ASCIIFoldingFilter but the same principle applies. Basically, you create a custom Analyzer with something like this in it (stripped down example):

                public class CustomAnalyzer extends Analyzer {
                  // other content omitted
                  // ...
                  public TokenStream tokenStream(String fieldName, Reader reader) {
                    TokenStream result = new StandardTokenizer(reader);
                    result = new StandardFilter(result);
                    result = new LowerCaseFilter(result);
                    // etc etc ...
                    result = new StopFilter(result, yourSetOfStopWords);
                    result = new ASCIIFoldingFilter(result);
                    return result;
                  }
                  // ...
                }
                

                TokenFilter 和 Tokenizer 都是 TokenStream 的子類.

                Both the TokenFilter and the Tokenizer are subclasses of TokenStream.

                還請記住,您必須在索引和搜索中使用相同的自定義分析器,否則您可能會在查詢中得到不正確的結(jié)果.

                Remember also that you must make use of the same custom analyzer both in indexing and searching or you might get incorrect results in your queries.

                這篇關(guān)于如何在我的 Lucene 應用程序中使用 ASCIIFoldingFilter?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關(guān)系嗎?)
                How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個隨機打亂數(shù)字的 int 數(shù)組)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲為 int?)
              • <i id='oYa9M'><tr id='oYa9M'><dt id='oYa9M'><q id='oYa9M'><span id='oYa9M'><b id='oYa9M'><form id='oYa9M'><ins id='oYa9M'></ins><ul id='oYa9M'></ul><sub id='oYa9M'></sub></form><legend id='oYa9M'></legend><bdo id='oYa9M'><pre id='oYa9M'><center id='oYa9M'></center></pre></bdo></b><th id='oYa9M'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oYa9M'><tfoot id='oYa9M'></tfoot><dl id='oYa9M'><fieldset id='oYa9M'></fieldset></dl></div>

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

                  <tfoot id='oYa9M'></tfoot>

                        <tbody id='oYa9M'></tbody>
                      <legend id='oYa9M'><style id='oYa9M'><dir id='oYa9M'><q id='oYa9M'></q></dir></style></legend>
                        • <bdo id='oYa9M'></bdo><ul id='oYa9M'></ul>
                          主站蜘蛛池模板: 九色.com| av毛片| a视频在线观看 | 日韩精品一区二区三区视频播放 | 国产精品久久久久久亚洲调教 | 久久久久无码国产精品一区 | 日韩在线| 国产区在线观看 | 亚洲欧美日韩在线 | 日韩中文一区二区三区 | 97色在线视频 | 亚洲成人一区 | 一区二区三区欧美 | 国产免费拔擦拔擦8x高清 | 精品久久久久久亚洲综合网站 | 国产综合精品一区二区三区 | 久久精品一级 | 欧美成人黄色小说 | 精品免费视频 | 三级国产三级在线 | 久久精品视频一区二区三区 | 国产精品小视频在线观看 | 精品久久香蕉国产线看观看亚洲 | 欧美国产免费 | 久久久精品视频一区二区三区 | 久久久久久久久久久蜜桃 | 久久免费视频1 | 亚洲影音先锋 | 国产亚洲精品久久久久动 | 国产成人在线一区二区 | 欧美一级久久 | 免费在线视频精品 | 国产成人精品久久 | 亚洲美女视频 | 欧美视频免费在线观看 | 中文字幕一区二区三区精彩视频 | 精品福利在线 | 国产www.| а天堂中文最新一区二区三区 | 日韩精品一区二区三区在线观看 | 天堂成人国产精品一区 |