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

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

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

          <bdo id='bmpTh'></bdo><ul id='bmpTh'></ul>

        如何使用 TermVector Lucene 4.0

        How to use TermVector Lucene 4.0(如何使用 TermVector Lucene 4.0)

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

          <small id='2nwcL'></small><noframes id='2nwcL'>

            <bdo id='2nwcL'></bdo><ul id='2nwcL'></ul>

              <tfoot id='2nwcL'></tfoot>

              <legend id='2nwcL'><style id='2nwcL'><dir id='2nwcL'><q id='2nwcL'></q></dir></style></legend>

                <tbody id='2nwcL'></tbody>
                  本文介紹了如何使用 TermVector Lucene 4.0的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在索引方法中,我使用以下行:

                  In the indexing method I use the following line:

                  Field contentsField = new Field("contents", new FileReader(f), Field.TermVector.YES);
                  

                  但是,在 Lucene 4.0 中,此構造函數已被棄用,應使用 new TextField 代替 new Field.

                  However, in Lucene 4.0 this constructor is deprecated and new TextField should be used instead of new Field.

                  TextField 的問題在于它的構造函數中不接受 TermVector.

                  But the problem with TextField is that it don't accept TermVector in its constructors.

                  有沒有辦法使用新的構造函數在我的 Lucene 4.0 索引中包含術語向量?

                  Is there a way to include the Term Vector in my indexing in Lucene 4.0 with the new constructors?

                  謝謝

                  推薦答案

                  TextField 是一個方便的類,適用于需要沒有術語向量的索引字段的用戶.如果您需要術語向量,只需使用 字段.由于您需要創建 FieldType 首先,將 storeTermVectorstokenizer 設置為 true,然后在 中使用這個 FieldType 實例>字段構造函數.

                  TextField is a convenience class for users who need indexed fields without term vectors. If you need terms vectors, just use a Field. It takes a few more lines of code since you need to create an instance of FieldType first, set storeTermVectors and tokenizer to true and then use this FieldType instance in Field constructor.

                  這篇關于如何使用 TermVector Lucene 4.0的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                    <tbody id='kv3Wi'></tbody>

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

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

                      • <tfoot id='kv3Wi'></tfoot>
                          <bdo id='kv3Wi'></bdo><ul id='kv3Wi'></ul>
                            主站蜘蛛池模板: 亚洲一二三区不卡 | 日韩欧美大片在线观看 | 欧美精品日韩精品 | 成人精品在线观看 | 精品国产一区二区三区免费 | 五月槐花香 | av黄色免费 | 精品一区av | 国产精品成人一区二区三区夜夜夜 | 免费av毛片 | 亚洲黄色在线 | 4hu最新网址 | 日韩国产专区 | 国产精品欧美一区二区三区不卡 | 91精品国产91久久久久久不卞 | 四虎影院一区二区 | 国产日韩精品视频 | 91精品国产一区 | 免费高清成人 | 亚洲精品一区在线观看 | 九九热精品视频 | h片在线观看免费 | 视频一区二区国产 | 在线视频亚洲 | 国产欧美日韩综合精品一区二区 | 中文字幕在线一区 | 国产高清在线视频 | 日韩激情网 | 污视频免费在线观看 | 成人免费在线观看视频 | 精品美女久久久久久免费 | 在线不卡av | 国产精品视频一区二区三区, | 羞羞视频一区二区 | 亚洲欧美日韩在线不卡 | 性色的免费视频 | 美女久久 | www.日本精品 | 久久精品色欧美aⅴ一区二区 | 欧美一级网站 | 国产在线一区二区 |