刪除與查詢匹配的文件
然後我們最終將查詢傳遞給 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);