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

    • <bdo id='aP7Qp'></bdo><ul id='aP7Qp'></ul>

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

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

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

        Lucene Proximity 搜索超過兩個(gè)詞的短語

        Lucene Proximity Search for phrase with more than two words(Lucene Proximity 搜索超過兩個(gè)詞的短語)
      1. <i id='iSiZZ'><tr id='iSiZZ'><dt id='iSiZZ'><q id='iSiZZ'><span id='iSiZZ'><b id='iSiZZ'><form id='iSiZZ'><ins id='iSiZZ'></ins><ul id='iSiZZ'></ul><sub id='iSiZZ'></sub></form><legend id='iSiZZ'></legend><bdo id='iSiZZ'><pre id='iSiZZ'><center id='iSiZZ'></center></pre></bdo></b><th id='iSiZZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='iSiZZ'><tfoot id='iSiZZ'></tfoot><dl id='iSiZZ'><fieldset id='iSiZZ'></fieldset></dl></div>
        • <bdo id='iSiZZ'></bdo><ul id='iSiZZ'></ul>
          <tfoot id='iSiZZ'></tfoot>
        • <legend id='iSiZZ'><style id='iSiZZ'><dir id='iSiZZ'><q id='iSiZZ'></q></dir></style></legend>

          • <small id='iSiZZ'></small><noframes id='iSiZZ'>

                    <tbody id='iSiZZ'></tbody>

                  本文介紹了Lucene Proximity 搜索超過兩個(gè)詞的短語的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  Lucene 的手冊(cè)中已經(jīng)清楚地解釋了鄰近搜索的含義,其中包含兩個(gè)單詞,例如 "jakarta apache"~10 中的示例http://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Proximity Searches

                  Lucene's manual has explained the meaning of proximity search for a phrase with two words clearly, such as the "jakarta apache"~10 example in http://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Proximity Searches

                  但是,我想知道像 "jakarta apache lucene"~10 這樣的搜索到底是做什么的?它是否允許相鄰的單詞最多相隔 10 個(gè)單詞,或者所有成對(duì)的單詞都是這樣?

                  However, I am wondering what does a search like "jakarta apache lucene"~10 exactly do? Does it allow neighboring words to be at most 10 words apart, or all pairs of words to be that?

                  謝謝!

                  推薦答案

                  slop (proximity) 就像編輯距離一樣工作(參見 PhraseQuery.setSlop).因此,這些條款可以重新排序或添加額外的條款.這意味著接近度將是添加到整個(gè)查詢中的最大術(shù)語數(shù).那就是:

                  The slop (proximity) works like an edit distance (see PhraseQuery.setSlop). So, the terms could be reordered or have extra terms added. This means that the proximity would be the maximum number of terms added into the whole query. That is:

                  "jakarta apache lucene"~3
                  

                  將匹配:

                  • jakarta lucene apache"(距離:2)
                  • "jakarta extra words here apache lucene"(距離:3)
                  • jakarta 一些詞 apache 分隔 lucene"(距離:3)

                  但不是:

                  • lucene jakarta apache"(距離:4)
                  • "jakarta too many extra words here apache lucene"(距離:5)
                  • jakarta 一些話apache進(jìn)一步分隔lucene"(距離:4)

                  有些人被以下的困惑:

                  lucene jakarta apache"(距離:4)

                  "lucene jakarta apache" (distance: 4)

                  簡(jiǎn)單的解釋是交換術(shù)語需要兩次編輯,所以:

                  The simple explanation is that swapping terms takes two edits, so:

                  1. jakarta apache lucene(距離:0)
                  2. jakarta lucene apache(第一次交換,距離:2)
                  3. lucene jakarta apache(第二次交換,距離:4)

                  更長(zhǎng)但更準(zhǔn)確的解釋是,每次編輯都允許將術(shù)語移動(dòng)一個(gè)位置.交換的第一步將兩個(gè)術(shù)語相互交換.牢記這一點(diǎn)解釋了為什么任何三個(gè)術(shù)語的集合都可以重新排列成距離不大于 4 的任何順序.

                  The longer, but more accurate, explanation is that every edit allows a term to be moved by one position. The first move of a swap transposes two terms on top of each other. Keeping this in mind explains why any set of three terms can be rearranged into any order with distance no greater than 4.

                  1. jakarta apache lucene(距離:0)
                  2. jakarta [apache,lucene](距離:1)
                  3. [jakarta,apache,lucene](都轉(zhuǎn)置在同一個(gè)位置,距離:2)
                  4. lucene [jakarta,apache](距離:3)
                  5. lucene jakarta apache(距離:4)

                  這篇關(guān)于Lucene Proximity 搜索超過兩個(gè)詞的短語的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測(cè) 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)建一個(gè)隨機(jī)打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 int?)

                      <tbody id='eZ6x7'></tbody>
                      • <tfoot id='eZ6x7'></tfoot>
                      • <small id='eZ6x7'></small><noframes id='eZ6x7'>

                        • <bdo id='eZ6x7'></bdo><ul id='eZ6x7'></ul>

                            <legend id='eZ6x7'><style id='eZ6x7'><dir id='eZ6x7'><q id='eZ6x7'></q></dir></style></legend>
                            <i id='eZ6x7'><tr id='eZ6x7'><dt id='eZ6x7'><q id='eZ6x7'><span id='eZ6x7'><b id='eZ6x7'><form id='eZ6x7'><ins id='eZ6x7'></ins><ul id='eZ6x7'></ul><sub id='eZ6x7'></sub></form><legend id='eZ6x7'></legend><bdo id='eZ6x7'><pre id='eZ6x7'><center id='eZ6x7'></center></pre></bdo></b><th id='eZ6x7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='eZ6x7'><tfoot id='eZ6x7'></tfoot><dl id='eZ6x7'><fieldset id='eZ6x7'></fieldset></dl></div>
                          1. 主站蜘蛛池模板: 91视视频在线观看入口直接观看 | 在线视频一区二区 | 天天综合久久 | 91福利网址 | 亚洲精品在线观看网站 | 精品视频一区二区 | 狠狠躁天天躁夜夜躁婷婷老牛影视 | 久久成人一区 | 亚洲欧美国产毛片在线 | 国产精品久久久久久久久久久免费看 | 欧美videosex性极品hd | 日本在线你懂的 | 国产精品成人一区二区三区夜夜夜 | 国产午夜影院 | 美女久久久久久久 | 免费中文字幕 | 91免费高清视频 | 99精品电影 | 男女爱爱福利视频 | 久久久久久久久久久久91 | 一区二区三区免费 | 国产在线拍偷自揄拍视频 | 欧美8一10sex性hd| 天天综合干 | 在线免费观看毛片 | 亚洲国产成人精品一区二区 | 国产在线永久免费 | 亚洲一区在线日韩在线深爱 | 国产片网站| 国产高清精品在线 | 91精品久久久 | 91精品入口蜜桃 | 免费在线观看黄网站 | 老司机狠狠爱 | 午夜私人影院 | 亚洲色图在线观看 | 日本特黄特色aaa大片免费 | 国产激情网站 | 日韩成人在线视频 | 久久久精品一区二区三区 | 天天操网|