新增索引集合
<p><strong>简要描述:</strong> </p>
<ul>
<li>新增索引集合</li>
</ul>
<p><strong>入参:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">list</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">List<T></td>
<td>要新增的索引</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"TOOK": "took",
"tookInMillis":36000,
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">无</td>
<td style="text-align: left;">BulkResponse</td>
<td>返回信息</td>
</tr>
</tbody>
</table>
<p><strong>示例代码</strong></p>
<pre><code class="language-java">List<BaoDanModel> list = new ArrayList<>();
BaoDanModel main1 = new BaoDanModel();
main1.setProposal_no("main1");
main1.setAppli_name("456");
main1.setRisk_code("0101");
main1.setSum_premium(1);
BaoDanModel BaoDanModel = new BaoDanModel();
BaoDanModel.setProposal_no("BaoDanModel");
BaoDanModel.setAppli_name("456");
BaoDanModel.setSum_premium(2);
BaoDanModel.setRisk_code("0102");
list.add(main1);
list.add(BaoDanModel);
elasticsearchTemplate.save(list);</code></pre>
<p><strong>接口</strong></p>
<pre><code class="language-java">/**
* 新增索引集合
* @param list
*/
public BulkResponse save(List<T> list) throws Exception;</code></pre>
<p><strong>返回结果</strong>
list的对应数据及个数情况回显在response中
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/74d013e869ed38d211584027968dfc74?showdoc=.jpg" alt="" /></p>