You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (Created) (JIRA)" <ji...@apache.org> on 2011/11/29 16:40:40 UTC

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

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


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


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

Posted by "Robert Muir (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir resolved LUCENE-3608.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0

-1 seems like the only reasonable solution...
                
> 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


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

Posted by "Michael McCandless (Commented) (JIRA)" <ji...@apache.org>.
    [ 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