根据条件删除索引
<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;">queryBuilder</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">QueryBuilder</td>
<td>查询的条件</td>
</tr>
<tr>
<td style="text-align: left;">clazz</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Class<T></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
true
}</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;">BulkByScrollResponse</td>
<td>返回信息</td>
</tr>
</tbody>
</table>
<p><strong>示例代码</strong></p>
<pre><code class="language-java">QueryBuilder queryBuilder = QueryBuilders.matchQuery("main1","123");
elasticsearchTemplate.deleteByCondition(queryBuilder, BaoDanModel.class);</code></pre>
<p><strong>接口</strong></p>
<pre><code class="language-java">/**
* 根据条件删除索引
* @param queryBuilder
* @param clazz
* @return
* @throws Exception
*/
public BulkByScrollResponse deleteByCondition(QueryBuilder queryBuilder, Class<T> clazz) throws Exception;</code></pre>