久久久久久久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 應(yīng)用程序中使用 ASCIIFoldingFilt

      How do I use ASCIIFoldingFilter in my Lucene app?(如何在我的 Lucene 應(yīng)用程序中使用 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 應(yīng)用程序中使用 ASCIIFoldingFilter?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我有一個從索引中搜索的標(biāo)準(zhǔn) Lucene 應(yīng)用程序.我的索引包含很多法語術(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 對象,當(dāng)您向它發(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 作為輸入.它們的作用類似于包裝器,或者更準(zhǔn)確地說,類似于輸入的 裝飾器.這意味著它們增強了包含的 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 應(yīng)用程序中使用 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>
                          主站蜘蛛池模板: 丁香综合| 亚洲国产中文字幕 | 日韩综合一区 | 国产精品免费在线 | eeuss国产一区二区三区四区 | 一二三四在线视频观看社区 | 精品视频国产 | 亚洲高清在线 | 日韩一区二区在线观看视频 | 激情一区二区三区 | 国产综合视频 | 在线欧美一区 | 亚洲一区二区视频在线播放 | 一级毛片免费完整视频 | 久久激情视频 | 欧美日韩一区不卡 | 亚洲91精品 | 亚洲精品视 | 国产精品国产亚洲精品看不卡15 | 欧美日韩在线一区二区 | 91久久精品一区二区二区 | 久久69精品久久久久久久电影好 | 国产欧美日韩一区二区三区 | 国产精品久久久久久高潮 | 97av视频在线 | 91视频88av | 人人射人人插 | 欧洲成人 | 蜜臀久久99精品久久久久野外 | 久久久久久亚洲精品 | 日本免费在线 | 91精品在线播放 | 亚洲成人一区 | 午夜免费观看网站 | 欧美日韩成人在线 | 国产视频中文字幕 | 中文字幕av一区二区三区 | 亚洲精品视频久久 | 青青草网 | 男女午夜免费视频 | 一区二区三区不卡视频 |