List Info

Thread: Bug: IndexWriter.deleteDocuments missing




Bug: IndexWriter.deleteDocuments missing
country flaguser name
United States
2007-05-13 14:02:33
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

I only noticed the Java version when browsing the Lucene
Changelog: 
http://svn.apache.org/repos/asf/lucene/
java/tags/lucene_2_1_0/CHANGES.txt

Originating Ticket in Lucene's JIRA (warning: it's long
& boring): 
http:
//issues.apache.org/jira/browse/LUCENE-565

-- 
Peter Fein   ||   773-575-0694   ||   pfeinpobox.com
http://www.pobox.com/~pf
ein/   ||   PGP: 0xCCF6AE6B
irc: pfeinfreenode.net   ||   jabber: peter.feingmail.com
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

Re: Bug: IndexWriter.deleteDocuments missing
country flaguser name
United States
2007-05-13 21:53:47
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-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )