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

Jan Høydahl commented on SOLR-2366:
-----------------------------------

bq. So for a facet.range.start=0, facet.range.end=1000, 
facet.range.gap=10,90,900 the labels would be as Jan suggests: [0 TO 10}, [10 
TO 100}, [100 TO 1000}.

[~tedsullivan], I am not in favor of a list of relative gaps, I think it is 
user unfriendly. That's why I suggested a new facet.range.spec or something 
like Hoss' facet.range.buckets. But if you for some reason wish to extend the 
"gap" parameter, I guess it needs to remain relative gaps since that is kind of 
implied in the wording?

> Facet Range Gaps
> ----------------
>
>                 Key: SOLR-2366
>                 URL: https://issues.apache.org/jira/browse/SOLR-2366
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 4.7
>
>         Attachments: SOLR-2366.patch, SOLR-2366.patch, SOLR-2366.patch
>
>
> There really is no reason why the range gap for date and numeric faceting 
> needs to be evenly spaced.  For instance, if and when SOLR-1581 is completed 
> and one were doing spatial distance calculations, one could facet by function 
> into 3 different sized buckets: walking distance (0-5KM), driving distance 
> (5KM-150KM) and everything else (150KM+), for instance.  We should be able to 
> quantize the results into arbitrarily sized buckets.
> (Original syntax proposal removed, see discussion for concrete syntax)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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

Reply via email to