lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harish Agarwal (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-2198) Grouping treats null values as equivalent to 0 or an empty string
Date Wed, 27 Oct 2010 19:03:21 GMT

     [ https://issues.apache.org/jira/browse/SOLR-2198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Harish Agarwal updated SOLR-2198:
---------------------------------

    Attachment: SOLR-2198.patch

I attached a patch which seems to fix the problem for fields using [Int, Long, Double, Float]FieldSource's.
  I made the 'exists' property on MutableValue's public and am using it to denote null values,
all the non-grouping tests still pass.

I'm still having trouble figuring out how to distinguish between a null string and "" - is
this even possible?

It would be good to get some feedback on the patch before I try to extend this to other field
types (like SortableFields).

> Grouping treats null values as equivalent to 0 or an empty string
> -----------------------------------------------------------------
>
>                 Key: SOLR-2198
>                 URL: https://issues.apache.org/jira/browse/SOLR-2198
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Harish Agarwal
>         Attachments: SOLR-2198.patch, SOLR-2198.patch
>
>
> The grouping function does not distinguish between missing values and their null type
equivalents (0 for numeric types and an empty string for string types). 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message