You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "James Miller (JIRA)" <ji...@apache.org> on 2009/09/28 20:09:16 UTC

[jira] Created: (SOLR-1471) StatsComponent

StatsComponent 
---------------

                 Key: SOLR-1471
                 URL: https://issues.apache.org/jira/browse/SOLR-1471
             Project: Solr
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: James Miller


The StatsComponent always returns a missing value of 0 for stats.facet. The number of missing is calculated for the overall field statistics, but not for the facets.


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


[jira] Resolved: (SOLR-1471) StatsComponent does not calculate number missing for facets

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll resolved SOLR-1471.
-----------------------------------

    Resolution: Fixed

I committed the fix for the single value case.  Committed revision 821014.

I don't have good bearings yet on fixing the multivalued case.  I am going to open up a new issue and move that to 1.5, unless someone wants to take it up.

> StatsComponent does not calculate number missing for facets
> -----------------------------------------------------------
>
>                 Key: SOLR-1471
>                 URL: https://issues.apache.org/jira/browse/SOLR-1471
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: James Miller
>            Assignee: Grant Ingersoll
>             Fix For: 1.4
>
>         Attachments: SOLR-1471.patch, SOLR-1471.patch
>
>
> The StatsComponent always returns a missing value of 0 for stats.facet. The number of missing is calculated for the overall field statistics, but not for the facets.

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


[jira] Updated: (SOLR-1471) StatsComponent

Posted by "James Miller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Miller updated SOLR-1471:
-------------------------------

    Attachment: SOLR-1471.patch

Here is a patch and unit test for single value field that counts missing for facets.

I'm not sure about multivalue fields, but I could try if someone points me in the right direction.



> StatsComponent 
> ---------------
>
>                 Key: SOLR-1471
>                 URL: https://issues.apache.org/jira/browse/SOLR-1471
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: James Miller
>         Attachments: SOLR-1471.patch
>
>
> The StatsComponent always returns a missing value of 0 for stats.facet. The number of missing is calculated for the overall field statistics, but not for the facets.

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


[jira] Commented: (SOLR-1471) StatsComponent does not calculate number missing for facets

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762459#action_12762459 ] 

Yonik Seeley commented on SOLR-1471:
------------------------------------

Found it... in UnInvertedField.getStats(), the FieldType was being overwritten by the type of the facet fields.

> StatsComponent does not calculate number missing for facets
> -----------------------------------------------------------
>
>                 Key: SOLR-1471
>                 URL: https://issues.apache.org/jira/browse/SOLR-1471
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: James Miller
>            Assignee: Grant Ingersoll
>             Fix For: 1.4
>
>         Attachments: SOLR-1471.patch, SOLR-1471.patch
>
>
> The StatsComponent always returns a missing value of 0 for stats.facet. The number of missing is calculated for the overall field statistics, but not for the facets.

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


[jira] Assigned: (SOLR-1471) StatsComponent does not calculate number missing for facets

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll reassigned SOLR-1471:
-------------------------------------

    Assignee: Grant Ingersoll

> StatsComponent does not calculate number missing for facets
> -----------------------------------------------------------
>
>                 Key: SOLR-1471
>                 URL: https://issues.apache.org/jira/browse/SOLR-1471
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: James Miller
>            Assignee: Grant Ingersoll
>             Fix For: 1.4
>
>         Attachments: SOLR-1471.patch
>
>
> The StatsComponent always returns a missing value of 0 for stats.facet. The number of missing is calculated for the overall field statistics, but not for the facets.

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


[jira] Commented: (SOLR-1471) StatsComponent does not calculate number missing for facets

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760574#action_12760574 ] 

Grant Ingersoll commented on SOLR-1471:
---------------------------------------

Multivalued stuff is implemented in UninvertedField.java

> StatsComponent does not calculate number missing for facets
> -----------------------------------------------------------
>
>                 Key: SOLR-1471
>                 URL: https://issues.apache.org/jira/browse/SOLR-1471
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: James Miller
>            Assignee: Grant Ingersoll
>             Fix For: 1.4
>
>         Attachments: SOLR-1471.patch
>
>
> The StatsComponent always returns a missing value of 0 for stats.facet. The number of missing is calculated for the overall field statistics, but not for the facets.

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


[jira] Updated: (SOLR-1471) StatsComponent does not calculate number missing for facets

Posted by "James Miller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Miller updated SOLR-1471:
-------------------------------

    Fix Version/s: 1.4
          Summary: StatsComponent does not calculate number missing for facets  (was: StatsComponent )

> StatsComponent does not calculate number missing for facets
> -----------------------------------------------------------
>
>                 Key: SOLR-1471
>                 URL: https://issues.apache.org/jira/browse/SOLR-1471
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: James Miller
>             Fix For: 1.4
>
>         Attachments: SOLR-1471.patch
>
>
> The StatsComponent always returns a missing value of 0 for stats.facet. The number of missing is calculated for the overall field statistics, but not for the facets.

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


[jira] Updated: (SOLR-1471) StatsComponent does not calculate number missing for facets

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated SOLR-1471:
----------------------------------

    Attachment: SOLR-1471.patch

Here's a patch that tests for missing in multivalued, and thus fails.  Fix still needs to be implemented.

> StatsComponent does not calculate number missing for facets
> -----------------------------------------------------------
>
>                 Key: SOLR-1471
>                 URL: https://issues.apache.org/jira/browse/SOLR-1471
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: James Miller
>            Assignee: Grant Ingersoll
>             Fix For: 1.4
>
>         Attachments: SOLR-1471.patch, SOLR-1471.patch
>
>
> The StatsComponent always returns a missing value of 0 for stats.facet. The number of missing is calculated for the overall field statistics, but not for the facets.

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