Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "VariableRangeGaps" page has been changed by HossMan: http://wiki.apache.org/solr/VariableRangeGaps?action=diff&rev1=6&rev2=7 Comment: comments on the mailing list suggest people don't realize this doc is hypothetical + /!\ NOTE /!\ NOTE /!\ NOTE /!\ NOTE /!\ NOTE /!\ NOTE /!\ NOTE /!\ + + '''This doc was written to help flesh out a user API. The features described here are all hypothetical and do not actually exist yet, don't assume anything you see on this page works in any version of Solr''' + + /!\ NOTE /!\ NOTE /!\ NOTE /!\ NOTE /!\ NOTE /!\ NOTE /!\ NOTE /!\ + <<TableOfContents(3)>> == Brief == The Jira issue [[https://issues.apache.org/jira/browse/SOLR-2366|SOLR-2366]] discusses how to implement variable gap sizes into range faceting. This is useful for things like prices, date ranges etc. This page is an sandbox for preparing the WIKI documentation for Range Facet, until the feature is released. I (janhoy) propose to leave the old facet.range.start/end/gap/ syntax as is for backward compat, and introduce a new simpler param facet.range.spec for the new advanced range spec feature. See below how this would look in WIKI: - == Facet by Range - second take by janhoy == + == Proposed Facet by Range - second take by janhoy == - - <!> [[Solr3.1]] As a generalization of the Date faceting described above, one can use the Range Faceting feature on any date field or any numeric field that supports range queries. This is particularly useful for the cases in the past where one might stitch together a series of range queries (as facet by query) for things like prices, etc. @@ -82, +86 @@ If you want to ensure you don't double-count, don't choose both lower & upper, don't choose outer, and don't choose all. === facet.range.spec === - <!> [[Solr3.4]] Often times you want un-equally spaced facet gaps. A typical example is prices, e.g. '''0-10$''', '''10-50$''', '''50-100$''', '''100-250$''', '''250-500$'''. Another common example is date ranges, where we also need overlapping ranges such as '''last day''', '''last week''', '''last month'''. The facet.range.spec parameter lets you configure such complex ranges with one parameter. The syntax of this parameter is as follows: @@ -121, +124 @@ - == Facet by Range - first take by janhoy == + == Proposed Facet by Range - first take by janhoy == - <!> [[Solr3.1]] As a generalization of the Date faceting described above, one can use the Range Faceting feature on any date field or any numeric field that supports range queries. This is particularly useful for the cases in the past where one might stitch together a series of range queries (as facet by query) for things like prices, etc. @@ -197, +199 @@ If you want to ensure you don't double-count, don't choose both lower & upper, don't choose outer, and don't choose all. === facet.range.spec === - <!> [[Solr3.4]] Often times you want un-equally spaced facet gaps. A typical example is prices, e.g. '''0-10$''', '''10-50$''', '''50-100$''', '''100-250$''', '''250-500$'''. Another common example is date ranges, where we also need overlapping ranges such as '''last day''', '''last week''', '''last month'''. The facet.range.spec parameter lets you configure such complex ranges with one parameter. The syntax of this parameter is as follows: