lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andi Vajda (Commented) (JIRA)" <>
Subject [jira] [Commented] (PYLUCENE-12) Add PythonReusableAnalyzerBase, so we can create analyzers in Python
Date Fri, 02 Dec 2011 04:00:40 GMT


Andi Vajda commented on PYLUCENE-12:

 you say: "I know we document that you must call super (,
but, can we make this throw an exception instead of SEGV, to be more friendly? Or is that
hard...? "

It's not hard, just costly. Everywhere the wrapped pointer is used, it must be checked. It's
like checking for lack of calling initVM() or
attachCurrentThread(). It took a while to find the right way to do this that didn't involve
checking these all the time.

> Add PythonReusableAnalyzerBase, so we can create analyzers in Python
> --------------------------------------------------------------------
>                 Key: PYLUCENE-12
>                 URL:
>             Project: PyLucene
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>         Attachments: PYLUCENE-12.patch, PYLUCENE-12.patch
> Lucene now has a useful helper class, ReusableAnalyzerBase; you subclass it and override
one method, to create an analyzer that provides reusableTokenStream impl.
> I think we should expose it in Python... patch is simple.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message