lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2788) Make CharFilter reusable
Date Wed, 01 Dec 2010 20:43:11 GMT
Make CharFilter reusable
------------------------

                 Key: LUCENE-2788
                 URL: https://issues.apache.org/jira/browse/LUCENE-2788
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Analysis
            Reporter: Robert Muir
            Priority: Minor


The CharFilter API lets you wrap a Reader, altering the contents before the Tokenizer sees
them.
It also allows you to correct the offsets so this is transparent to highlighting.

One problem is that the API isn't reusable, if you have a lot of short documents its going
to be efficient.
Additionally there is some unnecessary wrapping in Tokenizer (see the CharReader.get in the
ctor, but *not* in reset(Reader)!!!)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message