lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "VariableRangeGaps" by JanHoydahl
Date Mon, 29 Aug 2011 16:23:50 GMT
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 JanHoydahl:
http://wiki.apache.org/solr/VariableRangeGaps?action=diff&rev1=1&rev2=2

  <<BR>>
  {{{<gap>}}} is either an absolute number or date, e.g. {{{50}}} or {{{2011-01-01T00:00:00Z}}},
a relative gap size, e.g. {{{+40}}} or {{{+1DAY}}} or even a complete range such as {{{10..50}}}
or {{{2011-01-01..NOW}}}.
  
+ Relative {{{<gap>s}}} repeat until next absolute number/date.
+ 
  ==== Examples: ====
  {{{facet.range.spec=*,10,50,100,250,*}}} - gives 5 ranges: MIN-10, 10-50, 50-100, 100-250,
250->MAX
  <<BR>>
  {{{facet.range.spec=*,10,+40,+50,250,*}}} - gives exactly the same ranges, using relative
gap size
  <<BR>>
+ {{{facet.range.spec=0,+10,50,250,*}}} - gives ranges: 0-10, 10-20, 20-30, 30-40, 40-50,
20-250, 250-MAX
+ <<BR>>
+ {{{facet.range.spec=0,10,50,+50,+100,*}}} - gives ranges: 0-10, 10-50, 50-100, 100-200,
200-300 repeating until max
+ <<BR>>
  {{{facet.range.spec=NOW-1DAY..NOW, NOW-1WEEK..NOW, NOW-1MONTH..NOW}}} - gives three overlapping
date ranges for last day, week and month
  
  This parameter can be combined with facet.range.include, but is mutually exclusive to facet.range.gap,
facet.range.begin, facet.range.end and facet.range.other

Mime
View raw message