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

Munendra S N commented on SOLR-9802:
------------------------------------

[~erickerickson]
I would need some suggestions here. There is similar issue in terms component 
too - SOLR-13403. In both cases, main problem is {{Data.toString()}} being 
called.
I have attached patches for both issues which resolves issues but not in the 
best possible way

Initial thoughts was to implement {{toString()}} in {{MutableDateValue}} but as 
{{MutableDateValue}} is just wrapper for {{Date}}, current implementation looks 
good to me. 
I went through usage of {{mutableValue}} across codebase, except in distributed 
grouping and terms component(for point field only), there is an additional 
wrapper for {{mutableValues}} in Solr. So, similarly we could have new wrapper 
class for each {{mutableValue}}



> Cannot group by a datefield in SolrCloud
> ----------------------------------------
>
>                 Key: SOLR-9802
>                 URL: https://issues.apache.org/jira/browse/SOLR-9802
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Erick Erickson
>            Priority: Major
>         Attachments: SOLR-9802.patch
>
>
> While working on SOLR-5260 I ran across this. It is easily reproducible by 
> indexing techproducts to a two-shard collection and then
> &group=true&group.field=manufacturedate_dt
> This works fine stand-alone.
> When 5260 gets checked in look in DocValuesNotIndexedTest.java for a 
> reference to this JIRA and take out the special processing that avoids this 
> bug for a unit test.
> Stack trace:
>   80770 ERROR (qtp845642178-32) [n:127.0.0.1:50799_solr c:dv_coll s:shard1 
> r:core_node2 x:dv_coll_shard1_replica1] o.a.s.h.RequestHandlerBase 
> org.apache.solr.common.SolrException: 
>                     Invalid Date String:'Mon Feb 02 13:40:21 MSK 239906837'
>                     
>   at org.apache.solr.util.DateMathParser.parseMath(DateMathParser.java:234)
>   at org.apache.solr.schema.TrieField.readableToIndexed(TrieField.java:530)
>   at 
> org.apache.solr.search.grouping.distributed.command.GroupConverter.fromMutable(GroupConverter.java:59)
>   at 
> org.apache.solr.search.grouping.distributed.command.SearchGroupsFieldCommand.result(SearchGroupsFieldCommand.java:124)
>   at 
> org.apache.solr.search.grouping.distributed.shardresultserializer.SearchGroupsResultTransformer.transform(SearchGroupsResultTransformer.java:57)
>   at 
> org.apache.solr.search.grouping.distributed.shardresultserializer.SearchGroupsResultTransformer.transform(SearchGroupsResultTransformer.java:36)



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to