我有一个这样的日期时间字段。
<field name="rel_date" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
我尝试通过 curl 查询删除 rel_date 字段上的一些特定日期。
curl http://$SOLR_IPADDR:$SOLR_PORT/solr/update/?commit=true -H "Content-Type: text/xml" -d "<delete><query>rel_date:\[2012-03-10\])</query></delete>"
但是它在 SOLR 响应上出现 Invalid date string 错误。
HTTP 状态 400 - 无效的日期字符串:'[2012-03-10]'
如何使用 CURL 查询删除 SOLR 记录上的特定日期?