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.

The facet.range.hardend parameter is a Boolean parameter that specifies how <strong>Solr</strong> should handle<br />

cases where the facet.range.gap does not divide evenly between facet.range.start and facet.ra<br />

nge.end. If true, the last range constraint will have the facet.range.end value as an upper bound. If fals<br />

e, the last range will have the smallest possible upper bound greater then facet.range.end such that the<br />

range is the exact width of the specified range gap. The default value for this parameter is false.<br />

This parameter can be specified on a per field basis with the syntax f..facet.range.hard<br />

end.<br />

The facet.range.include Parameter<br />

By default, the ranges used to compute range faceting between facet.range.start and facet.range.<br />

end are inclusive of their lower bounds and exclusive of the upper bounds. The "before" range defined with<br />

the facet.range.other parameter is exclusive and the "after" range is inclusive. This default, equivalent<br />

to "lower" below, will not result in double counting at the boundaries. You can use the facet.range.inclu<br />

de parameter to modify this behavior using the following options:<br />

Option<br />

lower<br />

upper<br />

edge<br />

outer<br />

all<br />

All gap-based ranges include their lower bound.<br />

All gap-based ranges include their upper bound.<br />

Description<br />

The first and last gap ranges include their edge bounds (lower for the first one, upper for the last<br />

one) even if the corresponding upper/lower option is not specified.<br />

The "before" and "after" ranges will be inclusive of their bounds, even if the first or last ranges<br />

already include those boundaries.<br />

Includes all options: lower, upper, edge, outer.<br />

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

lude, and you can specify it multiple times to indicate multiple choices.<br />

To ensure you avoid double-counting, do not choose both lower and upper, do not choose outer,<br />

and do not choose all.<br />

The facet.range.other Parameter<br />

The facet.range.other parameter specifies that in addition to the counts for each range constraint<br />

between facet.range.start and facet.range.end, counts should also be computed for these options:<br />

Option<br />

before<br />

after<br />

between<br />

none<br />

all<br />

Description<br />

All records with field values lower then lower bound of the first range.<br />

All records with field values greater then the upper bound of the last range.<br />

All records with field values between the start and end bounds of all ranges.<br />

Do not compute any counts.<br />

Compute counts for before, between, and after.<br />

This parameter can be specified on a per field basis with the syntax of f..facet.range.ot<br />

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

301

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

Saved successfully!

Ooh no, something went wrong!