[pylucene-dev] Bug: IndexWriter.deleteDocuments missing

Andi Vajda vajda at osafoundation.org
Sun May 13 19:53:47 PDT 2007


On Sun, 13 May 2007, Pete wrote:

> As of Lucene2.1, IndexWriter grew a deleteDocuments method:
> http://lucene.apache.org/java/2_1_0/api/org/apache/lucene/index/IndexWriter.html
> http://lucene.apache.org/java/2_1_0/api/org/apache/lucene/index/IndexWriter.html#deleteDocuments(org.apache.lucene.index.Term)
>
> This method used to be only available on IndexReader, while addDocument is on
> IndexWriter.  This makes writing code that both adds & deletes documents much
> more natural.
>
> However, the deleteDocuments method doesn't appear to be in PyLucene:
>
> In [1]: from PyLucene import *
>
> In [2]: VERSION
> Out[2]: '2.1.0-2'
>
> In [3]: IndexWriter.deleteDocuments
> ---------------------------------------------------------------------------
> AttributeError: type object 'PyLucene.IndexWriter' has no
> attribute 'deleteDocuments'
>
> I suspect this wrapping for this method was just overlooked:
> http://svn.osafoundation.org/pylucene/trunk/CHANGES
>

Indeed, I didn't notice it.
I just added it and checked it into subversion rev 331.

Thanks for pointing it out !

Andi..


More information about the pylucene-dev mailing list