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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 使用 ElasticsearchRepository 時間格式待處理 創建 repository 文件夾, 創建 EsTestRepository 并繼承 ElasticsearchRepository ``` public interface EsTestRepository extends ElasticsearchRepository<TestIndex, String> { } ``` # 添加 ``` esTestRepository.save(testIndex); ``` # 批量添加 底層還是用的 elasticsearchOperations 的 ``` @Override public void batchSave(List<TestIndex> list) { Iterable<TestIndex> testIndices = esTestRepository.saveAll(list); } ``` # 更新 把要更新的數據轉成json字符串, 然后根據主鍵去更新 test_index 是索引名稱 ``` Document doc = Document.parse(JSONObject.toJSONString(testIndex)); UpdateQuery updateQuery = UpdateQuery.builder(testIndex.getId()).withDocument(doc).build(); UpdateResponse test_index = restTemplate.update(updateQuery, IndexCoordinates.of("test_index")); ``` # 批量更新 bulkUpdate , 就是把單個的更新, UpdateQuery 放到 list里, 一次去更新 ``` updateQuery 就是上面單條更新的數據 List<UpdateQuery> updateQueryList = new ArrayList<>(); updateQueryList.add(updateQuery); restTemplate.bulkUpdate(updateQueryList, IndexCoordinates.of("test_index")); ```
                  <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>

                              哎呀哎呀视频在线观看