Re: Unresolved external symbol errors when linking example native c++ code that uses jcc

2010-10-22 Thread Andi Vajda
On Fri, 22 Oct 2010, Imre András wrote: Ok, thanks. After resolving this I got the following error: jcc.cpp(294) : error C2039: 'fromJString' : is not a member of 'JCCEnv' As I see this method is present in JCCEnv.h, but an #ifdef PYTHON directive prevents to make it available for the tier co

Re: Unresolved external symbol errors when linking example native c++ code that uses jcc

2010-10-21 Thread Andi Vajda
On Thu, 21 Oct 2010, Imre András wrote: JCCEnv.h has the following: ... #ifdef _jcc_shared _DLL_IMPORT extern JCCEnv *env; _DLL_IMPORT extern DWORD VM_ENV; #else _DLL_EXPORT extern JCCEnv *env; _DLL_EXPORT extern DWORD VM_ENV; #endif ... I suspect here is the root of my linker problem. Where

Re: PatternAnalyzer not implemented?

2010-10-01 Thread Andi Vajda
On Fri, 1 Oct 2010, Roman Chyla wrote: I tried to use the PatternAnalyzer, but am getting NotImplementedError - in case it is not available, shall I rather use PythonAnalyzer and implement the regex pattern analyzer with that? using version: 2.9.3 In [44]: import lucene In [45]: import pyjama

Re: Segfault during IndexWriter.addDocument()

2010-09-27 Thread Andi Vajda
On Mon, 27 Sep 2010, Christian Heimes wrote: Am 27.09.2010 18:10, schrieb Christian Heimes: I'm trying to port our application to PyLucene 3.x. Most changes were trivial but now I've hit a dead end. The test suite always seg faults when it tries to add a document to the index. Our subclass o

Re: discussion about release frequency.

2010-09-18 Thread Andi Vajda
On Sat, 18 Sep 2010, Robert Muir wrote: Just my opinion: (personally i do not use maven, nor understand it). If maven support is beneficial to bringing more devs to lucene, we should consider what we can do. But at the same time, perhaps Makefiles would bring more devs, too. My problem with r

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-31 Thread Andi Vajda
On Aug 31, 2010, at 7:04, TJ Ninneman wrote: Since initVM() must be called from the main thread, the call to attachCurrentThread() listed above is not necessary. Thanks, I'll remove that line. This should be called once per thread. Calling it for every request better be fast and innocu

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread Andi Vajda
che2/wsgi. My apache2/wsgi is configured properly as I can run non lucene coded web pages. Apache2 is using mpm-worker, a threaded environment. Thanks. Regards, Vin On Sun, Aug 29, 2010 at 12:21 PM, Andi Vajda wrote: On Sun, 29 Aug 2010, technology inspired wrote: I am using

Re: do the Java and Python garbage collectors talk to each other, with JCC?

2010-08-25 Thread Andi Vajda
On Wed, 25 Aug 2010, Bill Janssen wrote: Sure, but tell that to the Lucene folks. They're the ones starting a new thread here. Of course, now and then one needs to start a new thread. I forwarded your question to Mike McCandless (who is also a subscriber to this list) to see if he had some

Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-17 Thread Andi Vajda
On Tue, 17 Aug 2010, Daniel Rech wrote: I'd like to use the setAllowLeadingWildcard method with PythonMultiFieldQueryParser but I always get a lucene.JavaError: org.apache.lucene.queryParser.ParseException: Cannot parse '*a': '*' or '?' not allowed as first character in WildcardQuery It works

Re: Possibility of random search result..?

2010-07-30 Thread Andi Vajda
Check with java-u...@lucene.apache.org, more Lucene experts are hanging out there. Andi.. On Jul 30, 2010, at 19:35, Soby Thomas wrote: Hi all, I want to know is it possible to get random search results from an query without using the scoring formulae so that I can compare it with the

RE: API changes between 2.9.2 and 2.9.3

2010-07-20 Thread Andi Vajda
On Tue, 20 Jul 2010, Thomas Koch wrote: Porting your stuff to Lucene 3.0 is recommended... [Thomas Koch] That's what I'm supposed to do next: port our PyLucene code to some "up-to-date" release - our codebase is still on PyLucene 2.6 and I expect it to break with the 3.x release ... With tha

Re: API changes between 2.9.2 and 2.9.3

2010-07-20 Thread Andi Vajda
On Jul 20, 2010, at 18:14, Bill Janssen wrote: Andi Vajda wrote: On Jul 20, 2010, at 4:40, Bill Janssen wrote: Looks like the combination of JCC 2.6 and Lucene 2.9.3 have made some significant API changes. This is what I get with 2.9.3: % python /u/python/uplib/indexing.py search

[jira] Created: (LUCENE-2530) rename docsEnum.getBulkResult() to make its role clearer

2010-07-09 Thread Andi Vajda (JIRA)
Components: Index Affects Versions: 4.0 Reporter: Andi Vajda Assignee: Michael McCandless Priority: Minor Before docsEnum.read() can be called a BulkResult instance must be allocated for it (it == the default implementation of that method). This is done by

Re: pylucene/trunk fails to install

2010-06-30 Thread Andi Vajda
On Jun 30, 2010, at 21:51, Helmut Jarausch aachen.de> wrote: Hi, Trying to install pylucene/trunk fails due to missing folders - lucene-java-3.1/contrib/analyzers - lucene-java-3.1/contrib/icu Don't use trunk, it's become a lot more unstable as per the lucene java project's policy change

Re: [VOTE] Release PyLucene 2.9.3-1 and 3.0.2-1

2010-06-25 Thread Andi Vajda
On Thu, 24 Jun 2010, Michael McCandless wrote: +1, again. Thank you Mike and Christian for your votes. We are still missing one PMC vote in order to release these artifacts. Grant ? Andi.. Mike On Wed, Jun 23, 2010 at 11:26 AM, Andi Vajda wrote: On Tue, 22 Jun 2010, Christian Heimes

Re: [VOTE] Release PyLucene 2.9.3-1 and 3.0.2-1

2010-06-22 Thread Andi Vajda
On Tue, 22 Jun 2010, Christian Heimes wrote: Am 21.06.2010 17:00, schrieb Christian Heimes: With the recent - simultaneous - releases of Java Lucene 2.9.3 and 3.0.2, the PyLucene 2.9.3-1 and 3.0.2-1 releases closely tracking them are ready. I've upgrade PyLucene from 2.9.2 to 2.9.3 and JCC f

[VOTE] Release PyLucene 2.9.3-1 and 3.0.2-1

2010-06-18 Thread Andi Vajda
With the recent - simultaneous - releases of Java Lucene 2.9.3 and 3.0.2, the PyLucene 2.9.3-1 and 3.0.2-1 releases closely tracking them are ready. Release candidates are available from: http://people.apache.org/~vajda/staging_area/ A list of changes in this release can be seen at: http:/

Re: instantiating Set()

2010-06-09 Thread Andi Vajda
On Jun 9, 2010, at 8:36, "Dirk Rothe" wrote: I'm trying to play with extractTerms() a method of the Query() class [1]. This method expects a java Set instance - but instantiating one failes with a NotImplementedError. Any clues whats missing: A Java Set is an interface and as such cannot

Re: Release-schedule JCC 2.6.0

2010-06-02 Thread Andi Vajda
On Wed, 2 Jun 2010, Julian Maibaum wrote: after the great work on integrating different JCC-wrapped packages with the --shared and --import flags, it would be really cool to see these features being officially released in JCC 2.6.0 as well. Since we rely on official releases for our production

mingw /implib:foo.lib equivalent ?

2010-05-24 Thread Andi Vajda
Hi Bill, Would you know what the equivalent mingw gcc flag for MSVC's /implib:foo.lib flag is ? This overrides the default name and location that the linker uses to produce a DLLs' import library. I added some linking tricks on Windows and Linux for supporting the new --import funtionality

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Christian Heimes wrote: Can you suggest a patch for this ? It is not immediately obvious to me how to do this. I've attached a quick patch. Sorry for all the noise, my editor is configured to reformat Python code. The patch provides a custom build_py command class for

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Christian Heimes wrote: Setup = I'm running the tests on an Ubuntu 10.04 X86_64 box with Python 2.6.5, Sun Java 1.6.0_20, GCC 4.4.3 and patched setuptools 0.6c11 (all 64bit). JCC: $ svn co http://svn.apache.org/repos/asf/lucene/pylucene/branches/branch_3x/jcc jcc_3x

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Andi Vajda wrote: On Tue, 18 May 2010, Andi Vajda wrote: I don't have this problem with my simple program. My SillyAnalyzer class extends Lucene's Analyzer. foo.Analyzer is the one imported from lucene. >>> import lucene, foo >>> lucen

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Andi Vajda wrote: I don't have this problem with my simple program. My SillyAnalyzer class extends Lucene's Analyzer. foo.Analyzer is the one imported from lucene. >>> import lucene, foo >>> lucene.initVM() >>> foo.initVM(&qu

Re: Question about building 64bit pylucene on Darwin

2010-05-03 Thread Andi Vajda
On Mon, 3 May 2010, Michael Manoochehri wrote: I have a question about building a 64 bit binary of _lucene.so on Darwin. I am using (from uname): Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 In my Makefile, I have uncommented: Mac OS X 10.6

Re: LuceneJUnitResultFormatter sometimes fails to lock

2010-04-27 Thread Andi Vajda
On Tue, 27 Apr 2010, Andi Vajda wrote: On Tue, 27 Apr 2010, Shai Erera wrote: But that's not a good explanation I think. Realtime protection is always on, and I agree w/ Mark - if NativeFSLock fails because of that, we should fix that b/c Lucene is run on users' machines, where A

Re: LuceneJUnitResultFormatter sometimes fails to lock

2010-04-27 Thread Andi Vajda
On Tue, 27 Apr 2010, Shai Erera wrote: But that's not a good explanation I think. Realtime protection is always on, and I agree w/ Mark - if NativeFSLock fails because of that, we should fix that b/c Lucene is run on users' machines, where AV software is running too. Moreover, this happens very

<    1   2   3