lucene-pylucene-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/PYLUCENE-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161404#comment-13161404
] 

Andi Vajda commented on PYLUCENE-12:
------------------------------------

 you say: "I know we document that you must call super (http://lucene.apache.org/pylucene/jcc/documentation/readme.html#extensions),
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: https://issues.apache.org/jira/browse/PYLUCENE-12
>             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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message