lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3755) Add examples to javadocs of Analyzer (4.0)/ReusableAnalyzerBase(3.6)
Date Mon, 06 Feb 2012 22:06:59 GMT

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

Uwe Schindler commented on LUCENE-3755:
---------------------------------------

+1

I also need to change package javadocs about the Reader refactoring... I still see IndexReader.open()
in official Javadocs...
                
> Add examples to javadocs of Analyzer (4.0)/ReusableAnalyzerBase(3.6)
> --------------------------------------------------------------------
>
>                 Key: LUCENE-3755
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3755
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: general/javadocs
>            Reporter: Robert Muir
>              Labels: newdev
>             Fix For: 3.6, 4.0
>
>
> This stuff is great, it makes it easy to define analyzers:
> {code}
> Analyzer analyzer = new Analyzer() {
>     @Override
>     protected TokenStreamComponents createComponents(String fieldName, Reader reader)
{
>       Tokenizer source = new FooTokenizer(reader);
>       TokenStream filter = new FooFilter(source);
>       filter = new BarFilter(filter);
>       return new TokenStreamComponents(source, filter);
>     }
>   };
> {code}
> But, we should add basic examples to the javadocs I think (we can backport to ReusableAnalyzerBase).
> Also it would be nice to throw in an example that adds a CharFilter.

--
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message