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

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

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

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

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

        使用 Lucene 提升新文檔

        Boost fresh documents with Lucene(使用 Lucene 提升新文檔)

                <bdo id='fjPcH'></bdo><ul id='fjPcH'></ul>
              • <tfoot id='fjPcH'></tfoot>

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

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

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

                2. 本文介紹了使用 Lucene 提升新文檔的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  Lucene 是否提供了一種增加新文檔的方法?

                  Does Lucene provide a means to boost fresh documents?

                  例如,假設 Lucene 文檔包含一個日期字段.是否有可能在不讓用戶改變她的查詢的情況下,以更高的分數(shù)呈現(xiàn)最新的文檔?

                  For example suppose that the Lucene document includes a date field. Is it possible, without having the user to alter her query anyhow, to present the most recent documents with a higher score?

                  我不想采用粗略的按日期排序"解決方案,因為它會完全取消評分算法.

                  I do not want to resort to a coarse "sort by date" solution as it will completely cancel the scoring algorithm.

                  推薦答案

                  將文檔放入索引時使用 Document.setBoost(float value).

                  Use Document.setBoost(float value) when putting documents into the index.

                  您可以不斷地重新調整現(xiàn)有文檔上的值,或者擁有一個隨日期遞增的浮點值,這樣您只需將其應用于插入文檔的時間.

                  You can either constantly re-adjust the value on existing documents, OR have a float value that increments with date, so that you only need to apply it to the time that documents are inserted.

                  例如,從第 1 天文檔的提升值 0 開始.每天,boost 遞增 1.它是一個浮點值,每年遞增 365 會持續(xù)很長時間.

                  For example, start with a boost value of 0 for day 1 documents. Each day, increment the boost by 1. It's a float value, incrementing by 365 each year will last a long time.

                  您可能需要嘗試增強的強度才能獲得您想要的效果.

                  You may have to experiment with the strength of the boost to get the effect you want.

                  這篇關于使用 Lucene 提升新文檔的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關文檔推薦

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

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

                            <small id='6dWWw'></small><noframes id='6dWWw'>

                            主站蜘蛛池模板: 夜夜草av| 日韩成人中文字幕 | 午夜在线观看免费视频 | 日韩免费一区 | av不卡在线观看 | 欧美一区二区免费 | 国产h视频在线观看 | 国产毛片毛片毛片 | 日韩小视频在线观看 | 午夜天堂网 | 青草福利视频 | 老司机午夜免费精品视频 | 国产农村妇女aaaaa视频 | 六月天婷婷 | 91小视频在线观看 | 免费的黄色大片 | 999成人网| h片在线观看免费 | www黄色片| 一级毛片a | 91色网站 | 中文字幕伊人 | 国产成人精品av在线观 | 国产免费一区二区三区免费视频 | 日本特级黄色片 | 亚洲一区二区三区在线视频 | 日韩欧美国产精品 | 不卡在线 | 天天操操操 | 在线观看日韩精品 | 日韩精品视频一区二区三区 | 男人添女人囗交图 | 激情久久av | 青青草手机在线视频 | 成人91看片| 日本黄色免费 | 中文字幕丰满人伦在线 | av免费观看网址 | 国产成人免费在线观看 | 91成人精品一区在线播放 | 精品一区二区三区视频 |