Hi Andi, all
First thanks so much for this new revision.
I was able to compile it (had to get gcj4.1 first, I am running in OSX.)

Unfortunately, after installing the new version the original Fragmenter/HighlightIt test code does not work.

kolapse:~/Desktop/lucene/PyLucene-src-2.0.0-5/samples/LuceneInAction bwhitman$ python2.4 HighlightIt.py
Traceback (most recent call last):
  File "HighlightIt.py", line 7, in ?
    HighlightIt.main(sys.argv)
File "/Users/bwhitman/Desktop/lucene/PyLucene-src-2.0.0-5/samples/ LuceneInAction/lia/tools/HighlightIt.py", line 63, in main
    highlighter.setTextFragmenter(fragmenter)
PyLucene.JavaError: java.lang.NullPointerException

The Highlighter works fine without a fragmenter set.

Let me know if I've made a mistake or if I can help debug.

-Brian




On Nov 22, 2006, at 2:40 PM, Andi Vajda wrote:

On Wed, 22 Nov 2006, Andi Vajda wrote:

I should have a Fragmenter extension point later today...

I just released a new source tarball to

http://downloads.osafoundation.org/PyLucene/src/PyLucene- src-2.0.0-5.tar.gz

built from the latest in Java Lucene and that supports implementing the highlighter package's Fragmenter interface from Python as is done below:

class NullFragmenter(object):
   def start(self, text):
       pass
   def isNewFragment(self, token):
       return False

highlighter.setTextFragmenter(NullFragmenter())

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to