solr查询字段为空值,删除字段空值的方法

1. 例,我想查找内容字段content为空值的文档,看看文档有多少?执行如下查询.

http://127.0.0.1:11100/solr/province/select?q=-(content:*)&wt=json&indent=true

 2.删除域段空值:

http://127.0.0.1:11100/solr/province/update/?stream.body=<delete><query>-(content:*)</query></delete>&stream.contentType=text/xml;charset=utf-8&commit=true

posted @ 2015-01-31 21:59  勿妄  阅读(1484)  评论(0编辑  收藏  举报