11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

facet.range.gap<br />

facet.range.hardend<br />

facet.range.include<br />

facet.range.other<br />

facet.range.method<br />

Specifies the span of the range as a value to be added to the lower bound.<br />

A boolean parameter that specifies how <strong>Solr</strong> handles a range gap that cannot be<br />

evenly divided between the range start and end values. If true, the last range<br />

constraint will have the facet.range.end value an upper bound. If false, the last<br />

range will have the smallest possible upper bound greater then facet.range.end<br />

such that the range is the exact width of the specified range gap. The default value<br />

for this parameter is false.<br />

Specifies inclusion and exclusion preferences for the upper and lower bounds of the<br />

range. See the facet.range.include topic for more detailed information.<br />

Specifies counts for <strong>Solr</strong> to compute in addition to the counts for each facet range<br />

constraint.<br />

Specifies the algorithm or method to use for calculating facets.<br />

The facet.range Parameter<br />

The facet.range parameter defines the field for which <strong>Solr</strong> should create range facets. For example:<br />

facet.range=price&facet.range=age<br />

facet.range=lastModified_dt<br />

The facet.range.start Parameter<br />

The facet.range.start parameter specifies the lower bound of the ranges. You can specify this<br />

parameter on a per field basis with the syntax of f..facet.range.start. For example:<br />

f.price.facet.range.start=0.0&f.age.facet.range.start=10<br />

f.lastModified_dt.facet.range.start=NOW/DAY-30DAYS<br />

The facet.range.end Parameter<br />

The facet.range.end specifies the upper bound of the ranges. You can specify this parameter on a per field<br />

basis with the syntax of f..facet.range.end. For example:<br />

f.price.facet.range.end=1000.0&f.age.facet.range.start=99<br />

f.lastModified_dt.facet.range.end=NOW/DAY+30DAYS<br />

The facet.range.gap Parameter<br />

The span of each range expressed as a value to be added to the lower bound. For date fields, this should be<br />

expressed using the DateMathParser syntax (such as, facet.range.gap=%2B1DAY ... '+1DAY').<br />

You can specify this parameter on a per-field basis with the syntax of f..facet.range.gap.<br />

For example:<br />

f.price.facet.range.gap=100&f.age.facet.range.gap=10<br />

f.lastModified_dt.facet.range.gap=+1DAY<br />

The facet.range.hardend Parameter<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

300

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!