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] Update of "SimpleFacetParameters" by HossMan
Date Mon, 16 Aug 2010 21:08:46 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SimpleFacetParameters" page has been changed by HossMan.
http://wiki.apache.org/solr/SimpleFacetParameters?action=diff&rev1=45&rev2=46

--------------------------------------------------

  
  === facet.date.include ===
  
- <!> [[Solr4.0]]
+ <!> [[Solr3.1]]
  
  Be default, the ranges used to compute date faceting between facet.date.start and facet.date.end
are all inclusive of both endpoints, while the the "before" and "after" ranges are not inclusive.
 This behavior can be modified by the {{{facet.date.include}}} param, which can be any combination
of the following options...
  
@@ -210, +210 @@

  
  == Facet by Range ==
  
- <!> [[Solr3.x]]  See https://issues.apache.org/jira/browse/SOLR-1240
+ <!> [[Solr3.1]]  See https://issues.apache.org/jira/browse/SOLR-1240
  
- Similar to Date faceting (see above), one can facet by any 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.
+ 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.
  
  === facet.range ===
  
- TODO: Fill out more here.
- 
  This param indicates what field to create range facets for.  This param allows you to specify
names of fields  which should be treated as range facets.
  
- Example: &facet.range=price
+ Example: {{{facet.range=price&facet.range=age}}}
  
  === facet.range.start ===
+ 
- The lower bound of the range.
+ The lower bound of the ranges.
  
  This parameter can be specified on a per field basis.
+ 
+ Example: {{{f.price.facet.range.start=0.0&f.age.facet.range.start=10}}}
+ 
  === facet.range.end ===
  
- The upper bound of the range.
+ The upper bound of the ranges.
  
  This parameter can be specified on a per field basis.
+ 
+ Example: {{{f.price.facet.range.end=1000.0&f.age.facet.range.start=99}}}
+ 
  === facet.range.gap ===
  
- The size of each range expressed.
+ The size of each range expressed as a value to be added to the lower bound.  For date fields,
this should be expressed using the [[http://lucene.apache.org/solr/api/org/apache/solr/util/DateMathParser.html|DateMathParser]]
syntax.  (ie: {{{facet.range.gap=%2B1DAY}}} ... '+1DAY')
  
  This parameter can be specified on a per field basis.
+ 
+ Example: {{{f.price.facet.range.gap=100&f.age.facet.range.gap=10}}}
+ 
  
  === facet.range.hardend ===
  

Mime
View raw message