从 Solr Admin 中删除 solr 文档 [英] Deleting solr documents from Solr Admin

查看:51
本文介绍了从 Solr Admin 中删除 solr 文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 SOLR Admin 删除 SOLR 索引中的所有文档.

How do I delete all the documents in my SOLR index using the SOLR Admin.

我尝试使用 url 并且它有效,但想知道是否可以使用管理员完成相同的操作..

I tried using the url and it works but want to know if the same can be done using the Admin..

推荐答案

在 Solr Admin UI 的 Document 选项卡中使用以下查询之一:

Use one of the queries below in the Document tab of Solr Admin UI:

XML:

<delete><query>*:*</query></delete>

JSON:

{'delete': {'query': '*:*'}}

确保选择 Document Type 下拉菜单到 Solr Command (raw XML or JSON).

Make sure to select the Document Type drop down to Solr Command (raw XML or JSON).

这篇关于从 Solr Admin 中删除 solr 文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆