<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # boost(提升) 原文鏈接 :[https://www.elastic.co/guide/en/elasticsearch/reference/5.3/mapping-boost.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/mapping-boost.html) 譯文鏈接 : [boost(提升)](/pages/viewpage.action?pageId=9406602) 貢獻者 : [程威](/display/~chengwei),[ApacheCN](/display/~apachecn),[Apache中文網](/display/~apachechina) 個別字段可以自動 ?**boost**?(提升)權重 – 通過相關性分數來進行計數 - 在查詢的時候, **boost**(提升)參數使用如下 : ``` curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d' { "mappings": { "my_type": { "properties": { "title": { "type": "text", "boost": 2 (1) }, "content": { "type": "text" } } } } } ' ``` | 1 | 匹配的?**title**?字段的權重將兩倍于?**content**?字段,默認的?**boost**?的值為1.0. | Note **boost**(提升)參數僅適用于?**term**(詞條)查詢(前綴,范圍和模糊查詢不能夠使用?**boost?**). 你可以通過直接在查詢中使用 **boost**(提升)參數來實現相同的效果,例如下面這個查詢(使用字段時間?boost(提升)) ``` curl -XPOST 'localhost:9200/_search?pretty' -H 'Content-Type: application/json' -d' { "query": { "match" : { "title": { "query": "quick brown fox" } } } } ' ``` 等同于 ``` curl -XPOST 'localhost:9200/_search?pretty' -H 'Content-Type: application/json' -d' { "query": { "match" : { "title": { "query": "quick brown fox", "boost": 2 } } } } ' ``` 當?`[_all](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/mapping-all-field.html "_all field")?`字段中的值被復制引用時,?**boost**(提升) 參數也會得到應用.這意味著,當查詢 ?**_all?**字段的時候,源自 **title?**?字段的單詞將具有比源自 ?**content**?字段更高的 **score**(分數). 這就會產生一定的代價 : 當使用字段 **boosting**(提升時) ?**_all** 字段上的查詢會變慢. Deprecated in 5.0.0. 索引的時候?**boost**(提升)?參數已被棄用.查詢的時候?**boost**(提升)參數在字段映射中是有效的.對于5.0.0之前的版本創建的索引, boost(提升)參數在索引的時候仍然有效. Why index time boosting is a bad idea 我們建議不要在索引的時候使用?**boost**(提升)參數,原因如下: * 當不需要重新索引所有?**documents**(文檔),在索引的時候,你不能夠改變的?**boost**(提升)參數的值 . * 每一個查詢都支持?**query-time boosting**(查詢時間的提升)來實現相同的結果.不同之處在于,你可以調整?**boost**(提升)參數的值而不需要重新索引. * **Index-time boosts**(索引時間的提升)存儲為?**[norm](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/norms.html)**?的一部分,只有一個字節.這降低了字段長度歸一化因子的解析度,從而降低質量相關性的計算.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看