On Wed, 18 Nov 2009, Helmut Jarausch wrote:
On 10 Nov, Andi Vajda wrote:
I am pleased to announce the availability of Apache PyLucene 2.9.1.
Thanks Andi!
Unfortunately Lucence-3.0.0 breaks old scripts.
E.g.
make test
fails with
cd samples/LuceneInAction;
PYTHONPATH=/Src/Src/Python/App/Searching/PyLucene/pylucene-build/build/test
/usr/bin/python index.py
/home/jarausch/Python/App/Searching/PyLucene/pylucene-build/samples/LuceneInAction
Traceback (most recent call last):
File "index.py", line 12, in <module>
False)
File
"/Src/Src/Python/App/Searching/PyLucene/pylucene-build/samples/LuceneInAction/lia/common/TestDataDocumentHandler.py",
line 29, in createIndex
writer = IndexWriter(indexDir, StandardAnalyzer(), True)
lucene.InvalidArgsError: (<type 'StandardAnalyzer'>, '__init__', ())
make: *** [samples/LuceneInAction/index] Error 1
Yes, PyLucene 3.0.0 is not ready yet (and neither is Lucene Java 3.0.0). If
you use trunk, the Lucene in Action samples remain to be ported to the new
APIs. Since there is a new edition of the book out, a refresh of these
samples is probably also necessary.
There some changes, e.g. FSDirectory.getDirectory vanished and the call
to IndexWriter seems to have changed, as well.
Is there an upgrade guide?
You should be use PyLucene 2.9.1 until PyLucene 3.0.0 is out unless you want
to test a still moving target.
http://svn.apache.org/repos/asf/lucene/pylucene/tags/pylucene_2_9_1/
Lucene 3.0.0 is not out yet although RC1 was just announced.
Many thanks for a hint,
To know which APIs were changed, deprecated or removed altogether from
Lucene Java 3.0.0, please refer to the Lucene Java change lists for 2.9.1
and the upcoming 3.0.0 release.
For examples of new API in PyLucene uses you can refer to the PyLucene trunk
tests and regular samples, they have been ported already. It's just the
Lucene in Action samples that remain to be ported over.
http://svn.apache.org/repos/asf/lucene/pylucene/trunk/test/
http://svn.apache.org/repos/asf/lucene/pylucene/trunk/samples/
(except LuceneInAction)
Andi..
Helmut.
svn info
Path: .
URL: http://svn.apache.org/repos/asf/lucene/pylucene
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 881797
Node Kind: directory
Schedule: normal
Last Changed Author: vajda
Last Changed Rev: 834526
Last Changed Date: 2009-11-10 17:12:06 +0100 (Tue, 10 Nov 2009)
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany