lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <ser...@gmail.com>
Subject Consolidate IndexWriter.deleteDocuments()
Date Thu, 15 May 2014 13:51:54 GMT
Hi

I was looking at IW.deleteDocs() API, and was wondering why do we have both
deleteDocuments(Term) and deleteDocuments(Term...). Why can't we have just
the vararg one? Same applies to deleteDocuments(Query).

Both delDocs(Term) and delDocs(Term..) call DocsWriter.deleteTerms(Term...)
and otherwise look identical.

Would be nice if we can consolidate them, to reduce IW API. What do you
think?

Shai

Mime
View raw message