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-3853) Improve CHANGES.txt for FieldsEnum/TermsEnum
Date Tue, 06 Mar 2012 14:22:57 GMT

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

Uwe Schindler commented on LUCENE-3853:
---------------------------------------

In most cases, requesting a FieldsEnum is not needed, you normally use AtomicReader.fields().terms("fieldname")
[with several null-checks]. I think this code should be prominently on the howto.
                
> Improve CHANGES.txt for FieldsEnum/TermsEnum
> --------------------------------------------
>
>                 Key: LUCENE-3853
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3853
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/other
>    Affects Versions: 4.0
>            Reporter: Benson Margulies
>         Attachments: LUCENE-3853.patch
>
>
> The text in CHANGES.txt that explains the new situation with FieldsEnum doesn't explain
how to get one, and the explanation of TermEnum seems not to have kept up with the code. here's
a patch to CHANGES.txt.

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