怎么删除solr中的部分索引字段?

怎么删除solr中的部分索引字段?

问题描述:

在solr中已将某些字段设置为索引字段 ,怎么利用java程序删除部分的字段?

public void deleteDocumentByQuery() throws Exception {
SolrServer solrServer = new HttpSolrServer("http://192.168.25.127:8080/solr/collection1");
solrServer.deleteByQuery("item_title:测试商品3");
solrServer.commit();
}