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.ap
ache.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:
> h
ttp://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..
_______________________________________________
pylucene-dev mailing list
pylucene-dev osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev
|