删除与查询匹配的文档
然后我们最终将查询传递给 writer 以删除与查询匹配的文档:
// Remove the document by using a multi key query:
// http://www.avajava.com/tutorials/lessons/how-do-i-combine-queries-with-a-boolean-query.html
indexWriter.deleteDocuments(multiTermQuery);
然后我们最终将查询传递给 writer 以删除与查询匹配的文档:
// Remove the document by using a multi key query:
// http://www.avajava.com/tutorials/lessons/how-do-i-combine-queries-with-a-boolean-query.html
indexWriter.deleteDocuments(multiTermQuery);