Re: AW: AW: AW: Setting Stopword Set in PyLucene (or using Set in general)

2012-03-11 Thread Andi Vajda
Hi Thomas, On Fri, 2 Mar 2012, Thomas Koch wrote: thanks for the feedback! I revised the code and send you attached a new patch. Sorry for the delay in getting back to you. I integrated your patch and fixed a bunch of formatting and bugs in it. The collections-demo.py is not fully function

Re: AW: AW: Setting Stopword Set in PyLucene (or using Set in general)

2012-02-26 Thread Andi Vajda
Hi Thomas, Here are comments inline on your patch, quoting just the relevant fragments. Thank you ! Andi.. Index: python/collections.py === --- python/collections.py (revision 1292224) +++ python/collections.py (work

AW: AW: Setting Stopword Set in PyLucene (or using Set in general)

2012-02-22 Thread Thomas Koch
> Attached is a patch against > http://svn.apache.org/repos/asf/lucene/pylucene/branches/pylucene_3_5/ > (revision 1292224) > Should be attached NOW ,-) regards Thomas

AW: AW: Setting Stopword Set in PyLucene (or using Set in general)

2012-02-22 Thread Thomas Koch
s >>> ps.size() 3 >>> js = lucene.HashSet(ps) >>> js now we have created an instance of a java.utilHashSet with a python "native" set (s) wrapped by the collections.JavaSet as constructor argument (BTW, I found it difficult to understand why one class

AW: Setting Stopword Set in PyLucene (or using Set in general)

2012-02-03 Thread Thomas Koch
> Arrays.asList converts java arrays to java lists, and you can pass a python > sequence to it. From there, all of the collection constructors can be passed > other collections. > Thanks, Aric - that helped a lot. Will also look at the hints Andi send earlier this day. Regards, Thomas