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

Grant Ingersoll commented on LUCENE-3151:
-----------------------------------------

Hmm, this gets wonky with some of the dependencies.  Ideally, I'd like to keep 
this isolated to just the analysis package in core and util (ideally not even 
that, but do need things like ArrayUtil, BytesRef, etc.), however not sure that 
can be done w/o some refactoring.  For instance, Analyzer has a dependency on 
IndexableField, all so that it can check to see whether it is tokenized or not. 
 Could it just take in a boolean for getOffsetGap indicating whether it is 
tokenized or not?  It also has a dependency on AlreadyClosedException, which, I 
suppose could be moved to Util.

There also a number of imports for Javadocs which are probably useful, but a 
bit odd in terms of packaging for this particular thing.
                
> Make all of Analysis completely independent from Lucene Core
> ------------------------------------------------------------
>
>                 Key: LUCENE-3151
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3151
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 4.0-ALPHA
>            Reporter: Grant Ingersoll
>             Fix For: 4.1
>
>         Attachments: LUCENE-3151.patch
>
>
> Lucene's analysis package, including the definitions of Attribute, 
> TokenStream, etc. are quite useful outside of Lucene (for instance, Mahout 
> uses them) for text processing.  I'd like to move the definitions, or at 
> least their packaging, to a separate JAR file so that one can consume them 
> w/o needing Lucene core.  My draft idea is to have a definition area that 
> Lucene core is dependent on and the rest of the analysis package can then be 
> dependent on the definition area.  (I'm open to other ideas as well)

--
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to