You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (Commented) (JIRA)" <ji...@apache.org> on 2011/11/30 16:55:39 UTC

[jira] [Commented] (LUCENE-3608) MultiFields.getUniqueFieldCount is broken

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

Michael McCandless commented on LUCENE-3608:
--------------------------------------------

+1 for -1 ;)
                
> MultiFields.getUniqueFieldCount is broken
> -----------------------------------------
>
>                 Key: LUCENE-3608
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3608
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>
> this returns terms.size(), but terms is lazy-initted. So it wrongly returns 0.
> Simplest fix would be to return -1.

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