You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2018/03/02 23:35:00 UTC
[jira] [Commented] (SOLR-12020) terms faceting on date field fails
in distributed refinement
[ https://issues.apache.org/jira/browse/SOLR-12020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16384313#comment-16384313 ]
Yonik Seeley commented on SOLR-12020:
-------------------------------------
Attached a patch to fix. The issue was that JSON is used to pass refinement issue, and Date objects were converted using toString().
There was also a related bug when creating a string representation of the bucketValue to pass to ft.getFieldQuery()
> terms faceting on date field fails in distributed refinement
> ------------------------------------------------------------
>
> Key: SOLR-12020
> URL: https://issues.apache.org/jira/browse/SOLR-12020
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Facet Module
> Affects Versions: 6.6
> Reporter: Yonik Seeley
> Assignee: Yonik Seeley
> Priority: Major
> Attachments: SOLR-12020.patch, SOLR-12020.patch
>
>
> This appears to be a regression, as the reporter indicates that Solr 6.2 worked and Solr 6.6 does not.
> http://markmail.org/message/hwlajuy5jnmf4yd6
> I've reproduced the issue on the master branch (future v8) as well.
> A typical exception that results from a terms facet on a date field is:
> {code}
> org.apache.solr.common.SolrException: Invalid Date String:'Sat Feb 03 01:02:03 WET 2001'
> at org.apache.solr.util.DateMathParser.parseMath(DateMathParser.java:247)
> at org.apache.solr.util.DateMathParser.parseMath(DateMathParser.java:226)
> at org.apache.solr.schema.DatePointField.toNativeType(DatePointField.java:113)
> at org.apache.solr.search.facet.FacetFieldProcessor.refineBucket(FacetFieldProcessor.java:683)
> at org.apache.solr.search.facet.FacetFieldProcessor.refineFacets(FacetFieldProcessor.java:638)
> at org.apache.solr.search.facet.FacetFieldProcessorByArray.calcFacets(FacetFieldProcessorByArray.java:66)
> at org.apache.solr.search.facet.FacetFieldProcessorByArray.process(FacetFieldProcessorByArray.java:58)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org