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

Hoss Man commented on SOLR-6330:
--------------------------------

Spinning this issue off from SOLR-2894, where it was decided that this 
shouldn't block distributed support being added to pivot faceting and can be 
addressed later as needed.

the PivotFacetValue class (added in SOLR-2894) has a comment referring to this 
issue ("SOLR-6330") pointing at the likley starting point to address this 
problem in pivot facet refinement if/when we have the method(s) needed from the 
FieldType API.

> distributed pivot faceting may not work well with some custom FieldTypes
> ------------------------------------------------------------------------
>
>                 Key: SOLR-6330
>                 URL: https://issues.apache.org/jira/browse/SOLR-6330
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>            Priority: Minor
>
> A limitiation of the distributed pivot faceting code is that it makes some 
> explicit assumptions about the datatypes of the pivot values for the purposes 
> of "serializing" the values in order to make refinement requests to the 
> individual shards for those values.
> This logic works fine for String based fields, dates, and primitive numerics 
> -- but any custom FieldType that has a {{toObject()}} method which does not 
> return one of those data types may have problems.  While pivot faceting uses 
> the typed objects returned by {{toObject()}} in it's responses, there is no 
> general FieldType method for converting those objects back into Strings 
> suitable for the refinement requests.
> Untill we have some abstract, FieldType based, method for converting the 
> value Objects into Strings thta can be included in the refinement requests 
> for use in {{FieldType.getFieldQuery()}} there isn't really a good solution 
> for this.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to