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
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
> 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
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
> 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
On 2012 Feb 1, at 3:07 AM, Thomas Koch wrote:
> OK, I found a solution (obviously not the best one...): lucene.Set is
> representing a java.util *interface* Set which of course cannot be
> instantiated. HashSet is an implementing class, and can be instantiated. You
> can add elements via the add()
Hi,
is there any way to use the Java Set class in PyLucene? e.g. the
StopAnalyzer has a constructor with a Set for stopwords:
StopAnalyzer(Version matchVersion, Set stopWords)
see
http://lucene.apache.org/java/3_5_0/api/all/org/apache/lucene/analysis/StopA
nalyzer.html
This used to be a li