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

David Smiley commented on SOLR-9994:
------------------------------------

At first I was confused what Points has to do with CollapseQParser since 
collapsing should be on DocValues, not on an index (be it Terms or Points) but 
now I understand that it's _still_ DocValues, it's just that the collapse 
doesn't know about these new field types.  I wonder if these features that need 
to detect the DocValues type might be improved by introducing some method on 
FieldType that returns the Int/Long/Float/Double interpretation of the numeric 
DocValues, assuming the field even has numeric DocValues?  The result would be 
reducing instanceof checks (usually a good thing) which also allows for more 
flexibility of user defined special numeric fields.  Heck you could even 
collapse on an enum field then.

> Add support for CollapseQParser with PointFields
> ------------------------------------------------
>
>                 Key: SOLR-9994
>                 URL: https://issues.apache.org/jira/browse/SOLR-9994
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Tomás Fernández Löbbe
>         Attachments: SOLR-9994.patch
>
>
> Followup task of SOLR-8396



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to