Re: Test failures with pylucene-2.4.1-1

2011-02-25 Thread Andi Vajda
On Fri, 25 Feb 2011, tuxdna wrote: I built pylucene-2.4.1-1 on Fedora 14. ( https://tuxdna.wordpress.com/2011/02/25/pylucene-on-fedora-14/ ) When I did make test, I found test failures which I am pasting below: This looks like a version of jcc too new for this old a pylucene is used. Which

Re: pass compressed string

2011-02-23 Thread Andi Vajda
On Thu, 24 Feb 2011, Roman Chyla wrote: I would like to transfer results from python to java: hello = zlib.compress(hello) on the java side do: byte[] data = string.getBytes() But I am not successful. Is there any translation going on somewhere? Can you be more specific ? Actual lines of

Re: a Debian package of PyLucene 3 for Ubuntu 10.10 Maverick (AMD64) ?

2011-02-17 Thread Andi Vajda
On Feb 17, 2011, at 0:31, Valery Khamenya khame...@gmail.com wrote: Hi guys, I tried several times to install PyLucene 3 on Ubuntu 10.10 Maverick (AMD64). I have never succeeded with it (maybe 1 hour was never enough for it). Could someone, please, build a Debian package of PyLucene 3 for

Re: subclassing Python classes in Java

2011-02-16 Thread Andi Vajda
On Feb 16, 2011, at 9:39, Bill Janssen jans...@parc.com wrote: How do I subclass a Python class in a JCC-wrapped Java module? - define a Java class with native methods - using the usual extension tricks have a Python class implement these native methods - define a subclass of that Java

Re: Problem loading jcc from java : undefined symbol: PyExc_IOError

2011-02-14 Thread Andi Vajda
On Tue, 15 Feb 2011, Roman Chyla wrote: On Tue, Feb 15, 2011 at 1:32 AM, Andi Vajda va...@apache.org wrote: On Tue, 15 Feb 2011, Roman Chyla wrote: The python embedded in Java works really well on MacOsX and also Ubuntu. But I am trying hard to make it work also on Scientific Linux (SLC5

Re: pylucene branch_3x fails to build

2011-02-03 Thread Andi Vajda
On Thu, 3 Feb 2011, Andi Vajda wrote: On Thu, 3 Feb 2011, Wylie, Brian wrote: Mistype (exceptions.xml) - (extensions.xml) This is about trunk or 3.x ? Not the same thing, trunk is highly unstable and PyLucene is not following it too closely. What used to be trunk at the Lucene project

Re: pylucene branch_3x fails to build

2011-02-03 Thread Andi Vajda
On Thu, 3 Feb 2011, Wylie, Brian wrote: Mistype (exceptions.xml) - (extensions.xml) This is about trunk or 3.x ? Not the same thing, trunk is highly unstable and PyLucene is not following it too closely. What used to be trunk at the Lucene project is now the so-called 3.x branch,

Re: pylucene branch_3x fails to build

2011-02-03 Thread Andi Vajda
I just verified, at this moment, the HEAD of the 3.x branch http://svn.apache.org/repos/asf/lucene/pylucene/branches/branch_3x/ builds and passes all tests. Andi.. On Thu, 3 Feb 2011, Wylie, Brian wrote: Mistype (exceptions.xml) - (extensions.xml) On 2/3/11 11:29 AM, Wylie, Brian

Re: Using IndexWriter.commit(MapString,String commitUserData) in pylucene

2011-01-24 Thread Andi Vajda
On Mon, 24 Jan 2011, Eric Hall wrote: Sadly this appears to have been a case of PEBKAC or PICNIC, looks like I had a typo in the names of the index with the metadata in it and an older one w/o the metadata. Sorry for the annoyance. Using reader.getCommitUserData() is working

Re: Using IndexWriter.commit(MapString,String commitUserData) in pylucene

2011-01-19 Thread Andi Vajda
On Wed, 19 Jan 2011, Eric Hall wrote: On Wed, Jan 19, 2011 at 11:05:28AM -0800, Andi Vajda wrote: On Wed, 19 Jan 2011, Eric Hall wrote: I'd like to store some index metadata using IndexWriter.commit(MapString,String commitUserData) I've set up a python dict

Re: Using IndexWriter.commit(MapString,String commitUserData) in pylucene

2011-01-19 Thread Andi Vajda
On Wed, 19 Jan 2011, Eric Hall wrote: I'd like to store some index metadata using IndexWriter.commit(MapString,String commitUserData) I've set up a python dict with string to string mappings, but if I use that I get an InvalidArgsError. Is there a different python

Re: Small change in one of the sample file, i.e., samples/mansearch.py

2011-01-14 Thread Andi Vajda
On Fri, 14 Jan 2011, Jean Luc Truchtersheim wrote: I have just installed pylucene and tested it some of the sample scripts. In samples/mansearch.py, line 68 should be parser = QueryParser(Version.LUCENE_CURRENT,keywords, StandardAnalyzer(Version.LUCENE_CURRENT)) rather than parser =

Re: --module option not playing nicely with relative paths

2011-01-13 Thread Andi Vajda
Hi Roman, On Jan 13, 2011, at 5:47, Roman Chyla roman.ch...@gmail.com wrote: Until recently, I wasn't using --module parameter. But now I do and the compilation was failing, because I am not building things in the top folder, but from inside build - to avoid clutter. I believe I discovered

Re: --module option not playing nicely with relative paths

2011-01-13 Thread Andi Vajda
, Andi Vajda va...@apache.org wrote:  Hi Roman, On Jan 13, 2011, at 5:47, Roman Chyla roman.ch...@gmail.com wrote: Until recently, I wasn't using --module parameter. But now I do and the compilation was failing, because I am not building things in the top folder, but from inside build - to avoid

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
.. Cheers! roman On Wed, Jan 12, 2011 at 11:54 PM, Andi Vajda va...@apache.org wrote:  Hi Roman, On Wed, 12 Jan 2011, Roman Chyla wrote: Thanks for the help, now I was able to run the java and loaded PythonVM. I then built the python egg, after a bit of fiddling with parameters, it seems ok. I

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
curious. Please see one remaining question below. On Tue, Jan 11, 2011 at 10:37 PM, Andi Vajda va...@apache.org wrote: On Tue, 11 Jan 2011, Roman Chyla wrote: Hi Andy, This is much more than I could have hoped! Just yesterday, I was looking for ways how to embed Python VM in Jetty

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
On Wed, 12 Jan 2011, Roman Chyla wrote: And if in the python, I will do: import lucene import lucene.initVM(lucene.CLASSPATH) Will it work in this case? Giving access to the java classes from inside python. Or I will have to forget pylucene, and prepare some extra java classes? (the jcc in

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
Hi Roman, On Wed, 12 Jan 2011, Roman Chyla wrote: Thanks for the help, now I was able to run the java and loaded PythonVM. I then built the python egg, after a bit of fiddling with parameters, it seems ok. I can import the jcc wrapped python class and call it: In [1]: from solrpie_java

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
, Andi Vajda va...@apache.org wrote: On Wed, 12 Jan 2011, Roman Chyla wrote: Hi Andi, all, I tried to implement the PythonVM wrapping on Mac 10.6, with JDK 1.6.22, jcc is freshly built, in shared mode, v. 2.6. The python is the standard Python distributed with MacOsX When I try to run the java

Re: pylucene branch_3x fails to build

2011-01-11 Thread Andi Vajda
On Tue, 11 Jan 2011, Helmut Jarausch wrote: First, the patch jcc/jcc/patches/patch.43.0.6c11 doesn't quite work for Python2.7.1. I have attached a modified patch. More serious is the following error during make (I'm using sun-jdk-1.6.0.23) ant -f extensions.xml -Dlucene.dir=lucene-java-3.x

Re: call python from java - what strategy do you use?

2011-01-11 Thread Andi Vajda
, Jan 11, 2011 at 8:13 PM, Andi Vajda va...@apache.org wrote:  Hi Roman, On Tue, 11 Jan 2011, Roman Chyla wrote: I have recently wrapped solr inside jetty with JCC (we need to access very big result sets quickly, via JNI, but also keep solr running as normal) and was wondering what strategies do

Re: JVM errors

2011-01-07 Thread Andi Vajda
, Andi Vajda wrote: On Fri, 7 Jan 2011, Darren Govoni wrote: I'll try that and report. It seems to happen when many threads are attached at once and the CPU throttles. Maybe some GC settings could also help work around this ? Andi.. On 01/06/2011 09:42 PM, Andi Vajda wrote: On Thu, 6 Jan

Re: JVM errors

2011-01-06 Thread Andi Vajda
On Thu, 6 Jan 2011, Darren Govoni wrote: Hi, I am getting these JVM fatal errors: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x7f11dc3c093a, pid=6268, tid=139711024641792 # # JRE version: 6.0_21-b06 # Java VM: Java HotSpot(TM) 64-Bit

[ANNOUNCE] Apache PyLucene 2.9.4 and 3.0.3

2010-12-16 Thread Andi Vajda
I am pleased to announce the availability of the Apache PyLucene 2.9.4 and 3.0.3 releases. Apache PyLucene, a subproject of Apache Lucene, is a Python extension for accessing Java Lucene. Its goal is to allow you to use Lucene's text indexing and searching capabilities from Python. It is API

Re: [VOTE] [Take 3] Release PyLucene 2.9.4-1 and 3.0.3-1

2010-12-16 Thread Andi Vajda
On Sun, 12 Dec 2010, Andi Vajda wrote: A patch that improves the finding of jni.h on Mac OS X was integrated. It made it worth blocking this release and preparing new release artifacts. No one voted on the [Take 2] artifacts and I hope this is not inconveniencing anyone. I also hope

Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1 (take 2)

2010-12-12 Thread Andi Vajda
On Fri, 10 Dec 2010, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: Ok then, provide a tested patch that works and applies out of the box to JCC's trunk, and that puts this code into a new helper file like is done for linux and windows (thus not adding pages of code to setup.py

Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1 (take 2)

2010-12-10 Thread Andi Vajda
On Dec 10, 2010, at 10:24, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: A bug was reported against the previous release artifacts that blocked the release. The bug got fixed and new artifacts were uploaded, please vote again. This new candidate breaks

Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1 (take 2)

2010-12-10 Thread Andi Vajda
On Fri, 10 Dec 2010, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: So, it's broken on 10.6 out of the box vs broken on 10.5 out of the box or am I missing something else here ? (1) The patch I sent should work on both, out of the box. (2) Alternatively, if you hard-code the path

Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1

2010-12-09 Thread Andi Vajda
On Tue, 7 Dec 2010, Andi Vajda wrote: Hi Adil, And for both pylucene-3.0.3-1 (rc) and pylucene-3.0.2-1 when I run the make tests, most of the tests run fine, but a couple of them crash Python. ... /opt/local/bin/python test/test_PhraseQuery.py

Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1

2010-12-09 Thread Andi Vajda
On Wed, 8 Dec 2010, Andi Vajda wrote: On Wed, 8 Dec 2010, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: Yes, two things made me do this: 1. Bill Janssen said on this list that an Apple developer he talked to said that the /Developer tree is the correct one to use. I

Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1

2010-12-07 Thread Andi Vajda
, Dec 4, 2010 at 10:50 PM, Andi Vajda va...@apache.org wrote: With the recent releases of Lucene Java 2.9.4 and 3.0.3, the PyLucene 2.9.4-1 and 3.0.3-1 releases closely tracking them are ready. Release candidates are available from: http://people.apache.org/~vajda/staging_area/ A list

Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1

2010-12-07 Thread Andi Vajda
.. Cheers, -Adil On Sat, Dec 4, 2010 at 10:50 PM, Andi Vajda va...@apache.org wrote: With the recent releases of Lucene Java 2.9.4 and 3.0.3, the PyLucene 2.9.4-1 and 3.0.3-1 releases closely tracking them are ready. Release candidates are available from: http://people.apache.org/~vajda

Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1

2010-12-07 Thread Andi Vajda
On Tue, 7 Dec 2010, Bill Janssen wrote: Here's a patch to jcc/setup.py. With this it builds on both my 10.6 and my 10.5 systems. Bill diff -u pylucene-3.0.3-1/jcc/setup.py.orig pylucene-3.0.3-1/jcc/setup.py --- pylucene-3.0.3-1/jcc/setup.py.orig 2010-12-07 18:50:25.0 -0800 +++

[VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1

2010-12-04 Thread Andi Vajda
With the recent releases of Lucene Java 2.9.4 and 3.0.3, the PyLucene 2.9.4-1 and 3.0.3-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:

Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7

2010-11-30 Thread Andi Vajda
On Tue, 30 Nov 2010, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: Try without --find-jvm-dll and setting the Path in the shell first. Yes, I've tried it both ways -- same problem. the Web seems to indicate that this problem comes from mixing malloc and free calls from two

Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7

2010-11-29 Thread Andi Vajda
On Nov 29, 2010, at 9:45, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: I just tried this myself By this, do you mean 64-bit Windows 7, or Python 2.7? Both. 64 bit Windows 7, with Python 2.7 and Java 1.6.0_22 both 32-bit. and it seems that with Python 2.7

Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7

2010-11-29 Thread Andi Vajda
On Nov 29, 2010, at 18:40, Bill Janssen jans...@parc.com wrote: Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: I just tried this myself By this, do you mean 64-bit Windows 7, or Python 2.7? Both. 64 bit Windows 7, with Python 2.7 and Java 1.6.0_22 both 32-bit

Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7

2010-11-29 Thread Andi Vajda
On Nov 29, 2010, at 18:40, Bill Janssen jans...@parc.com wrote: Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: I just tried this myself By this, do you mean 64-bit Windows 7, or Python 2.7? Both. 64 bit Windows 7, with Python 2.7 and Java 1.6.0_22 both 32-bit

Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7

2010-11-29 Thread Andi Vajda
On Mon, 29 Nov 2010, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: On Nov 29, 2010, at 9:45, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: I just tried this myself By this, do you mean 64-bit Windows 7, or Python 2.7? Both. 64 bit Windows 7

Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7

2010-11-28 Thread Andi Vajda
On Mon, 22 Nov 2010, Bill Janssen wrote: Bill Janssen jans...@parc.com wrote: Using depends.exe on _jcc.pyd says that the missing file is Python27.dll, which seems odd. Where should I find that? And there is a python27.dll in C:\Windows\system32\. So, not sure what the problem is. I

Re: Loading Java class dynamically fails

2010-11-04 Thread Andi Vajda
On Nov 4, 2010, at 22:26, Atsuo Ishimoto ishim...@gembook.org wrote: Hello, I ran into a problem when I tried to use jcc for Apache Tika 0.7. I can construct org.apache.tika.parser.AutoDetectParser instance in the main thread, but cannot in the child thread. From following code, import

Re: inconsistency/performance trap of empty terms

2010-10-29 Thread Andi Vajda
On Oct 28, 2010, at 22:32, Robert Muir rcm...@gmail.com wrote: On Thu, Oct 28, 2010 at 10:28 PM, Andi Vajda va...@osafoundation.org wrote: I've used this in a URL index. I needed to be able to distinguish between searching URLs that had, say, no path, from searching URLs without

Re: inconsistency/performance trap of empty terms

2010-10-28 Thread Andi Vajda
On Thu, 28 Oct 2010, Robert Muir wrote: On Thu, Oct 28, 2010 at 8:35 PM, karl.wri...@nokia.com wrote: In database queries, it is often useful to treat an empty value specially, and be able to search explicitly for records that have (for instance) no field X, or no value for field X.  I

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

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

2010-10-21 Thread Andi Vajda
On Oct 21, 2010, at 4:39, Imre András ia...@freemail.hu wrote: Hi list, I intend to use jcc to ease calling Java code from native code. I managed to build and install it. Now I try to build my first test code from within MS VS 2010 Win32 console app project. Despite setting up the libs

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: Trouble installing pyLucene on FreeBSD

2010-10-08 Thread Andi Vajda
On Oct 8, 2010, at 17:37, Gav... ga...@16degrees.com.au wrote: Hi, Using FreeBSD 8.1-RC2 Im having trouble installing. I first tried to install using the ports system and /usr/ports/textproc/py-lucene When that failed I installed from source, compiled jcc and then pylucene, after some

Re: Trouble installing pyLucene on FreeBSD

2010-10-08 Thread Andi Vajda
On Oct 8, 2010, at 18:20, Gav... ga...@16degrees.com.au wrote: -Original Message- From: Andi Vajda [mailto:va...@apache.org] Sent: Saturday, 9 October 2010 11:04 AM To: pylucene-dev@lucene.apache.org Subject: Re: Trouble installing pyLucene on FreeBSD On Oct 8, 2010, at 17:37, Gav

Re: unfinished work on implib in jcc/setup.py

2010-10-07 Thread Andi Vajda
On Thu, 7 Oct 2010, Bill Janssen wrote: I'm looking at the setup.py for jcc, and it seems that there is some unfinished work lurking in there: IMPLIB_LFLAGS = { 'win32': [/IMPLIB:%s], 'mingw32': [-Wl,--out-implib,%s] } It's correct in python.py but something similar could also be done

Re: why install the .h files?

2010-10-06 Thread Andi Vajda
On Wed, 6 Oct 2010, Bill Janssen wrote: With 3.0.2, I see that there's an include subdir in the installed module, containing a lot of .h files. Is that necessary? I ask because the msilib module in Python doesn't support files with $ characters in their file names (yes, that's a bug in

Re: [jira] Created: (PYLUCENE-5) PyLucene 3.0.2 doesn't build with GCC 4.5 on Windows XP with MinGW/msys

2010-10-05 Thread Andi Vajda
Fixed in rev 1004766.

[jira] Resolved: (PYLUCENE-5) PyLucene 3.0.2 doesn't build with GCC 4.5 on Windows XP with MinGW/msys

2010-10-05 Thread Andi Vajda (JIRA)
[ https://issues.apache.org/jira/browse/PYLUCENE-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-5. --- Resolution: Fixed rev 1004766 PyLucene 3.0.2 doesn't build with GCC 4.5 on Windows XP with MinGW

Re: [jira] Created: (PYLUCENE-6) ominous svnversion error message -- truly an error?

2010-10-05 Thread Andi Vajda
On Tue, 5 Oct 2010, Bill Janssen (JIRA) wrote: ominous svnversion error message -- truly an error? --- Key: PYLUCENE-6 URL: https://issues.apache.org/jira/browse/PYLUCENE-6 Project: PyLucene

Re: [jira] Created: (PYLUCENE-7) compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys

2010-10-05 Thread Andi Vajda
On Tue, 5 Oct 2010, Bill Janssen (JIRA) wrote: compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys -- Key: PYLUCENE-7 URL: https://issues.apache.org/jira/browse/PYLUCENE-7

Re: [jira] Commented: (PYLUCENE-7) compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys

2010-10-05 Thread Andi Vajda
Adding --reserved IGNORE to the GENERATE definition in the Makefile fixes this. Sorry, just saw this, ignore my previous response. Andi..

[jira] Resolved: (PYLUCENE-7) compile fails for 3.0.2 with GCC 4.5 on Windows XP with MinGW/msys

2010-10-05 Thread Andi Vajda (JIRA)
[ https://issues.apache.org/jira/browse/PYLUCENE-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-7. --- Resolution: Fixed This was fixed on August 10th, 2010 in rev 984226. compile fails for 3.0.2

[jira] Resolved: (PYLUCENE-6) ominous svnversion error message -- truly an error?

2010-10-05 Thread Andi Vajda (JIRA)
[ https://issues.apache.org/jira/browse/PYLUCENE-6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-6. --- Resolution: Invalid Ok, so it's a Lucene bug. Please file a bug with the Lucene Java project

Re: [jira] Commented: (PYLUCENE-6) ominous svnversion error message -- truly an error?

2010-10-05 Thread Andi Vajda
On Oct 5, 2010, at 21:49, Bill Janssen (JIRA) j...@apache.org wrote: [ https://issues.apache.org/jira/browse/PYLUCENE-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12918420#action_12918420 ] Bill Janssen commented on PYLUCENE-6:

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

Re: Feature request: include collation

2010-09-29 Thread Andi Vajda
On Sep 29, 2010, at 8:29, Christian Heimes li...@cheimes.de wrote: Am 27.09.2010 03:59, schrieb Andi Vajda: In 3.x and trunk, I've been porting ICU-dependant Lucene contrib features to use PyICU [1][2] (which depends on C++ ICU). I think that having PyLucene depend both on C++ ICU

Re: wrapping itext with JCC?

2010-09-29 Thread Andi Vajda
On Sep 29, 2010, at 19:27, Bill Janssen jans...@parc.com wrote: I thought I'd try writing my own version of pdftk with Python. (pdftk is a C++ wrapper around a Java library that uses gcj to provide the C ++ bindings.) First I have to wrap iText with JCC. I'm using JCC 2.6 from PyLucene

Re: wrapping itext with JCC?

2010-09-29 Thread Andi Vajda
On Sep 29, 2010, at 19:41, Bill Janssen jans...@parc.com wrote: So, just to close out this thread and record this: I'm wrapping iText 5.0.4 with JCC 2.6, using Python 2.5. Here's the command line: python -m jcc --shared --jar iText.jar --reserved DOMAIN --python itext --version 5.0.4

Re: Feature request: include collation

2010-09-27 Thread Andi Vajda
On Sep 27, 2010, at 7:34, Christian Heimes li...@cheimes.de wrote: Am 27.09.2010 03:59, schrieb Andi Vajda: I'm not sure at this point which should remain. There are advantages to both... I'm open to arguments in favor of either. You can see examples in the 3.x tree [3]. The 3.x branch

Re: throwing an exception *through* Java?

2010-09-27 Thread Andi Vajda
On Sep 27, 2010, at 11:17, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: On Sat, 25 Sep 2010, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: On Sep 25, 2010, at 13:54, Bill Janssen jans...@parc.com wrote: I've got a subclass

Re: throwing an exception *through* Java?

2010-09-27 Thread Andi Vajda
On Mon, 27 Sep 2010, Bill Janssen wrote: Here's a printout of what I'm seeing: UpLibQueryParser.parse('_query_language:nl janssen')... = lucene.VERSION: 3.0.2 , jcc._jcc.JCC_VERSION 2.6 = Exception received is JavaError(Throwable: org.apache.jcc.PythonException: Query specifies language

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

Re: Feature request: include collation

2010-09-26 Thread Andi Vajda
On Mon, 27 Sep 2010, Christian Heimes wrote: I like to request a new feature for the next version of PyLucene. Lucene already comes with a collation library but PyLucene doesn't wrap it. Collation is required for language depending sorting of search results. [1] I've attached a working patch

Re: Bring out SmartChineseAnalyzer in PyLucene?

2010-09-26 Thread Andi Vajda
On Sat, 25 Sep 2010, Bill Janssen wrote: Right now you've got this one: ANALYZERS_JAR=$(LUCENE)/build/contrib/analyzers/common/lucene-analyzers-$(LUCENE_VER).jar How about adding: SMARTCNA_JAR=$(LUCENE)/build/contrib/analyzers/smartcn/lucene-smartcn-$(LUCENE_VER).jar and then adding

Re: Bring out SmartChineseAnalyzer in PyLucene?

2010-09-26 Thread Andi Vajda
On Mon, 27 Sep 2010, Robert Muir wrote: On Sun, Sep 26, 2010 at 10:05 PM, Andi Vajda va...@apache.org wrote: Doing so causes this complaint to be emitted while building the wrappers: WARNING: Can not find lexical dictionary directory! WARNING: This will cause unpredictable exceptions

Re: throwing an exception *through* Java?

2010-09-25 Thread Andi Vajda
On Sep 25, 2010, at 13:54, Bill Janssen jans...@parc.com wrote: I've got a subclass of PythonMultiFieldQueryParser. I'd like to be able to throw a custom Python exception with parameters in that code, and catch it in the Python code that's using it. To do this, the exception has to

Re: Bring out SmartChineseAnalyzer in PyLucene?

2010-09-25 Thread Andi Vajda
On Sep 25, 2010, at 12:45, Bill Janssen jans...@parc.com wrote: I'd like to be able to use the HMM-based Chinese Tokenizer in PyLucene, available in 3.x as org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer, apparently. I don't see this in PyLucene 3.0.2. Is this because it ends up

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

Re: Stopwords in StandardAnalyzer; Constructor

2010-09-03 Thread Andi Vajda
On Fri, 3 Sep 2010, technology inspired wrote: How can one define the list of allowed stopwords in StandardAnalyzer? According to Lucene Java API doc, a set should be defined in Constructor to include the list of allowed Stopwords. I want to avoid skipping few words like The, on, off from

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-31 Thread Andi Vajda
On Tue, 31 Aug 2010, technology inspired wrote: TJ Ninneman's solution has worked. When Python is setup with Mod_WSGI on Apache2, it is a recommeded to create a WSGI file in the application and provide it as the root in the Apache2 mod_wsgi settings. These should be called in the wsgi file at

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 t...@twopeasinabucket.com 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

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread Andi Vajda
. Regards, Vin On Sun, Aug 29, 2010 at 12:21 PM, Andi Vajda va...@apache.org wrote: On Sun, 29 Aug 2010, technology inspired wrote: I am using PyLucene 3.0.2 on Ubuntu 10.04 with Python 2.6.5 and Sun Java 1.6. I am written an example script to build

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-29 Thread Andi Vajda
On Sun, 29 Aug 2010, technology inspired wrote: I am using PyLucene 3.0.2 on Ubuntu 10.04 with Python 2.6.5 and Sun Java 1.6. I am written an example script to build index and store in a directory. Later on, I want it to search in my next example script which as of now I haven't written.

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

Re: InvalidArgsError - passing TopDocs object

2010-08-24 Thread Andi Vajda
On Aug 24, 2010, at 8:03, Roman Chyla roman.ch...@gmail.com wrote: I am trying to understand PyLucene more and to see if it is faster to retrieve result ids with java instead of with Python. The use case is to retrieve millions of recids -- with python, 700K ids takes about 1.5s. (even if

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

Re: API changes between 2.9.2 and 2.9.3

2010-07-22 Thread Andi Vajda
On Jul 22, 2010, at 2:09, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: Porting your stuff to 3.0 is thus highly recommended instead of complaining about broken (my bad) long- deprecated APIs. Hey, take 2.9.3 down, and announce no further pylucene support for 2

Re: API changes between 2.9.2 and 2.9.3

2010-07-22 Thread Andi Vajda
On Jul 22, 2010, at 17:52, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: On Jul 22, 2010, at 2:09, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: Porting your stuff to 3.0 is thus highly recommended instead of complaining about broken

RE: API changes between 2.9.2 and 2.9.3

2010-07-21 Thread Andi Vajda
On Wed, 21 Jul 2010, Thomas Koch wrote: But I understand now that as long as you remove deprecated code from 2.9 it *should* work with 2.9 and 3.0 as well! Right? Correct. e.g. methodHits search(Query query) Is now deprecated as Hits will be removed in Lucene 3.0 2.9 already supports

Re: API changes between 2.9.2 and 2.9.3

2010-07-21 Thread Andi Vajda
On Jul 21, 2010, at 19:59, Bill Janssen jans...@parc.com wrote: Bill Janssen jans...@parc.com wrote: What's crashing with PyLucene 2.9.3 is this code: for field in x.getFields(): where x is an instance of org.apache.lucene.document.Document. I can print x and it looks OK, but an

Re: API changes between 2.9.2 and 2.9.3

2010-07-21 Thread Andi Vajda
On Jul 21, 2010, at 20:38, Bill Janssen jans...@parc.com wrote: Bill Janssen jans...@parc.com wrote: Bill Janssen jans...@parc.com wrote: What's crashing with PyLucene 2.9.3 is this code: for field in x.getFields(): where x is an instance of org.apache.lucene.document.Document. I

Re: API changes between 2.9.2 and 2.9.3

2010-07-21 Thread Andi Vajda
On Jul 21, 2010, at 23:10, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: On Jul 21, 2010, at 19:59, Bill Janssen jans...@parc.com wrote: Bill Janssen jans...@parc.com wrote: What's crashing with PyLucene 2.9.3 is this code: for field in x.getFields

Re: missing doc on pylucene site

2010-07-20 Thread Andi Vajda
On Jul 20, 2010, at 3:44, Bill Janssen jans...@parc.com wrote: http://svn.apache.org/repos/asf/lucene/pylucene/tags/pylucene_3_0_2/jcc/CHANGES = The requested URL /repos/asf/lucene/pylucene/tags/pylucene_3_0_2/ jcc/CHANGES was not found on this server. All versions of PyLucene from

Re: API changes between 2.9.2 and 2.9.3

2010-07-20 Thread Andi Vajda
On Jul 20, 2010, at 4:40, Bill Janssen jans...@parc.com 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 /local/demo-repo/index picasso [...] hits are Hits:

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 jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: On Jul 20, 2010, at 4:40, Bill Janssen jans...@parc.com 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

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 that

Re: Building a custom Tokenizer

2010-07-18 Thread Andi Vajda
On Jul 17, 2010, at 22:30, Andi Vajda va...@apache.org wrote: On Jul 17, 2010, at 22:23, Martin mar...@webscio.net wrote: Hi there, I'm trying to extend the PythonTokenizer class to build my own custom tokenizer, but seem to get stuck pretty much soon after that. I know that I'm

Re: attach thread hangs

2010-07-17 Thread Andi Vajda
eventually gave up and just used threads, not as GIL-happy but good enough and without any lock-ups. Andi.. Darren On Fri, 2010-07-16 at 16:29 -0700, Andi Vajda wrote: On Sat, 17 Jul 2010, Andi Vajda wrote: On Jul 16, 2010, at 23:14, Darren Govoni dar...@ontrenet.com wrote: btw. I have

Re: attach thread hangs

2010-07-16 Thread Andi Vajda
On Jul 16, 2010, at 18:48, Darren Govoni dar...@ontrenet.com wrote: Hi, I have a situation where I have multiple (4) python objects that use pylucene and initVM's and attach to their own threads. It works fine for a bit, but eventually calls to vm.attachCurrentThread() hangs and never

Re: attach thread hangs

2010-07-16 Thread Andi Vajda
On Sat, 17 Jul 2010, Andi Vajda wrote: On Jul 16, 2010, at 23:14, Darren Govoni dar...@ontrenet.com wrote: btw. I have a timer thread that watches a message queue and then performs lucene lookups, so every time that timer thread invokes my object, its a new thread. Don't do that. Instead

[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

[ANNOUNCE] Apache PyLucene 2.9.3 and 3.0.2

2010-07-03 Thread Andi Vajda
I am pleased to announce the availability of the Apache PyLucene 2.9.3 and 3.0.2 releases. Apache PyLucene, a subproject of Apache Lucene, is a Python extension for accessing Java Lucene. Its goal is to allow you to use Lucene's text indexing and searching capabilities from Python. It is API

Re: JArray issue with PyLucene 2.9.2 on Fedora

2010-07-01 Thread Andi Vajda
On Wed, 30 Jun 2010, Bill Janssen wrote: I'm trying to build Lucene 2.9.2 on Fedora with gcc 4.3 and Python 2.5.1 and OpenJDK 6, but hit this issue with JArray: [...] building 'lucene._lucene' extension creating build/temp.linux-i686-2.5 creating build/temp.linux-i686-2.5/build creating

Re: JArray issue with PyLucene 2.9.2 on Fedora

2010-07-01 Thread Andi Vajda
On Jul 1, 2010, at 18:43, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: This error indicates that the C++ compiler thinks that jboolean and jbyte are the same types. Could it be that you're picking up gcj header files instead of the correct JDK ones as this tends

Re: pylucene/trunk fails to install

2010-06-30 Thread Andi Vajda
On Jun 30, 2010, at 21:51, Helmut Jarausch jarau...@igpm.rwth- 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

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

2010-06-29 Thread Andi Vajda
The first vote started on June 18th received two PMC votes and one user vote. A couple of bugs got fixed in the meantime so I'd like to call for another vote hoping for three PMC votes to make this release possible. --- With the recent - simultaneous - releases of Java Lucene 2.9.3

<    4   5   6   7   8   9   10   11   12   >