Re: FacetExample.py

2013-04-08 Thread Andi Vajda
On Mon, 8 Apr 2013, Thomas Koch wrote: Hi Andi, I could reproduce this and fixed it. A patch is available here: https://dl.dropbox.com/u/4384120/pylucene42-facetexample-patch-20130408.txt This is caused by change LUCENE-4700 in 4.2.1 cf. http://lucene.apache.org/core/4_2_1/changes/Changes.html

Re: FacetExample.py

2013-04-08 Thread Thomas Koch
Hi Andi, I could reproduce this and fixed it. A patch is available here: https://dl.dropbox.com/u/4384120/pylucene42-facetexample-patch-20130408.txt This is caused by change LUCENE-4700 in 4.2.1 cf. http://lucene.apache.org/core/4_2_1/changes/Changes.html regards Thomas -- Am 07.04.2013 um 00:22

Re: FacetExample.py

2013-04-06 Thread Andi Vajda
Hi Thomas, I resumed with the PyLucene samples migration and FacetExample.py is broken again because of another change in the facet module (I guess). Namely, if you built PyLucene (trunk) against Lucene 4.2.1 by setting LUCENE_SVN=http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_

Re: FacetExample.py

2013-02-14 Thread Dawid Weiss
> So, if each thread gets the same seed, then they should also get the same > random values, right ? They would start from the same seed so if they're calling that Random in the same pattern then yes -- they'd get the same values. Any real randomness will be non-reproducible. If this is needed fo

Re: FacetExample.py

2013-02-14 Thread Dawid Weiss
Hi folks, > about the randomness: I think this should not be the case. if > different threads try to share the same random, actually there should > be an exception from the test framework saying that each thread should > get its own random (eg. initialized by a long value). So lucene-java > tests

Re: FacetExample.py

2013-02-14 Thread Dawid Weiss
> This one: > lucene/core/src/test/org/apache/lucene/search/TestSort.java Yeah, I figured by comparing the size of these three... So, to make it short -- every thread should get its own Random instance from a call to LuceneTestCase's public static Random random() { return RandomizedContex

Re: FacetExample.py

2013-02-14 Thread Andi Vajda
On Thu, 14 Feb 2013, Dawid Weiss wrote: about the randomness: I think this should not be the case. if different threads try to share the same random, actually there should be an exception from the test framework saying that each thread should get its own random (eg. initialized by a long value)

Re: FacetExample.py

2013-02-13 Thread Robert Muir
On Wed, Feb 13, 2013 at 7:54 PM, Andi Vajda wrote: > > On Wed, 13 Feb 2013, Robert Muir wrote: > >> On Tue, Feb 12, 2013 at 3:11 AM, Andi Vajda wrote: >>> >>> I then found that the test case from hell, TestSort.java, has majorly >>> changed again and test_Sort.py needs to be ported again. Sigh. >

Re: FacetExample.py

2013-02-13 Thread Andi Vajda
On Wed, 13 Feb 2013, Robert Muir wrote: On Tue, Feb 12, 2013 at 3:11 AM, Andi Vajda wrote: I then found that the test case from hell, TestSort.java, has majorly changed again and test_Sort.py needs to be ported again. Sigh. Andi.. I'm not laughing at your expense Andi... but this made me l

Re: FacetExample.py

2013-02-13 Thread Robert Muir
On Tue, Feb 12, 2013 at 3:11 AM, Andi Vajda wrote: > I then found that the test case from hell, TestSort.java, has majorly > changed again and test_Sort.py needs to be ported again. Sigh. > > Andi.. I'm not laughing at your expense Andi... but this made me laugh out loud multiple times today. I'

Re: FacetExample.py

2013-02-13 Thread Andi Vajda
On Wed, 13 Feb 2013, Thomas Koch wrote: Hi Andi, You're right - and API docs are wrong. Actually both must have change after 4.1 release: I checked the source of java-lucene v4.1 (lucene-4.1.0-src.tgz / 21-Jan-2013) and it matches the online javadocs. So I guess you're preparing for PyLucene

Re: FacetExample.py

2013-02-13 Thread Thomas Koch
Hi Andi, You're right - and API docs are wrong. Actually both must have change after 4.1 release: I checked the source of java-lucene v4.1 (lucene-4.1.0-src.tgz / 21-Jan-2013) and it matches the online javadocs. So I guess you're preparing for PyLucene v4.2? Note: I think that LUCENE_SVN=htt

Re: FacetExample.py

2013-02-12 Thread Thomas Koch
Hi Andi, Thanks to your hints I was now able to build PyLucene4.1 and got further with the FacetExample.py - The imports should be OK now and most of the required changes are done I guess. However I now reached another problem: I need to instantiate the class 'FacetsCollector' but get an error

Re: FacetExample.py

2013-02-12 Thread Andi Vajda
On Tue, 12 Feb 2013, Andi Vajda wrote: Indeed. I reproduced that error here. A new method was added to the FieldCache.Parser interface. I added it to the classes missing it (rev 1445048). I then found that the test case from hell, TestSort.java, has majorly changed again and test_Sort.py need

Re: FacetExample.py

2013-02-12 Thread Andi Vajda
Hi Thomas, On Mon, 11 Feb 2013, Thomas Koch wrote: first please excuse I didn't get back to you regarding the tests - I did start with it but then got stuck and distracted from other tasks popping up. No excuse - I just failed to deliver what I promised. Oh well. No worries. Would you ple

Re: FacetExample.py

2013-02-11 Thread Thomas Koch
Hi Andi, first please excuse I didn't get back to you regarding the tests - I did start with it but then got stuck and distracted from other tasks popping up. No excuse - I just failed to deliver what I promised. > ... > Would you please port it to the new 4.x API so that it can be included wit