<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 一、索引的維護 如果建立的檢索數據模型發生變更,需要強制的刪除一次索引,然后重建之,否則,索引不會被更新,舉例; ``` GET /rayphonenumber/_mapping?pretty ``` 結果: ``` { "rayphonenumber" : { "mappings" : { "properties" : { "_class" : { "type" : "keyword", "index" : false, "doc_values" : false }, "area" : { "type" : "keyword" }, "full-number" : { "type" : "text", "fields" : { "keyword" : { "type" : "keyword", "ignore_above" : 256 } } }, "id" : { "type" : "text", "fields" : { "keyword" : { "type" : "keyword", "ignore_above" : 256 } } }, "number" : { "type" : "keyword" }, "price" : { "type" : "long" }, "service-provider" : { "type" : "keyword" }, "sku-id" : { "type" : "long" }, "spu-id" : { "type" : "long" } } } } } ``` 其中有些字段,是在后期增加和變化的,但索引并沒有隨著數據變化和自動更新,可以通過強制刪除索引,然后重建一次,來解決這個問題; ``` elasticsearchOperations.indexOps(PhoneNumber.class).delete() ``` 或者直接用命令: ``` DELETE /rayphonenumber ``` 然后,再重新導入數據,即可自動創建更新的索引; ``` { "rayphonenumber" : { "mappings" : { "properties" : { "_class" : { "type" : "keyword", "index" : false, "doc_values" : false }, "area" : { "type" : "text", "analyzer" : "ik_smart" }, "full-number" : { "type" : "keyword" }, "number" : { "type" : "text" }, "price" : { "type" : "long" }, "service-provider" : { "type" : "text", "analyzer" : "ik_smart" }, "sku-id" : { "type" : "long" }, "spu-id" : { "type" : "long" } } } } } ```
                  <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>

                              哎呀哎呀视频在线观看