T - range field implementation typeR - type of rangeG - type of gappublic abstract static class FacetOptions.FieldWithRangeParameters<T extends FacetOptions.FieldWithRangeParameters<?,?,?>,R,G> extends FieldWithQueryParameters<FacetOptions.FacetParameter>
| Constructor and Description |
|---|
FieldWithRangeParameters(String name,
R start,
R end,
G gap) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
addFacetRangeParameter(String parameterName,
Object value) |
R |
getEnd() |
G |
getGap()
The size of the range to be added to the lower bound.
|
Boolean |
getHardEnd()
If the last range should be abruptly ended even if the end doesn't satisfies: (start - end) % gap = 0.
|
org.apache.solr.common.params.FacetParams.FacetRangeInclude |
getInclude()
The definition of how boundaries (lower and upper) shall be handled (exclusive or inclusive) on range facet
requests.
|
org.apache.solr.common.params.FacetParams.FacetRangeOther |
getOther()
The definition of additional (other) counts for the range facet.
|
R |
getStart()
Start value configured for this field range facet.
|
T |
setHardEnd(Boolean rangeHardEnd)
Defines if the last range should be abruptly ended even if the end doesn't satisfies: (start - end) % gap = 0.
|
T |
setInclude(org.apache.solr.common.params.FacetParams.FacetRangeInclude rangeInclude)
Defines how boundaries (lower and upper) shall be handled (exclusive or inclusive) on range facet requests.
|
T |
setOther(org.apache.solr.common.params.FacetParams.FacetRangeOther rangeOther)
Defines the additional (other) counts for the range facet, i.e. count of documents that are before start of the
range facet, end of range facet or even between start and end.
|
addQueryParameter, getQueryParameter, getQueryParameters, getQueryParameterValue, hasQueryParameters, iterator, removeQueryParameterequals, getName, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic T setHardEnd(Boolean rangeHardEnd)
rangeHardEnd - whenever false will expect to have the last range with the same size as the
other ranges entries for the query, otherwise (true), may present the last range smaller
than the other range entries.FacetParams.FACET_RANGE_HARD_END@Nullable public Boolean getHardEnd()
null will be returned if not setFacetParams.FACET_RANGE_HARD_ENDpublic T setOther(org.apache.solr.common.params.FacetParams.FacetRangeOther rangeOther)
rangeOther - which other counts shall be added to the facet resultFacetParams.FACET_RANGE_OTHER@Nullable public org.apache.solr.common.params.FacetParams.FacetRangeOther getOther()
FacetParams.FACET_RANGE_OTHERpublic T setInclude(org.apache.solr.common.params.FacetParams.FacetRangeInclude rangeInclude)
rangeInclude - include option for rangeFacetParams.FACET_RANGE_INCLUDE@Nullable public org.apache.solr.common.params.FacetParams.FacetRangeInclude getInclude()
FacetParams.FACET_RANGE_INCLUDEpublic G getGap()
FacetParams.FACET_RANGE_GAPpublic R getStart()
FacetParams.FACET_RANGE_STARTpublic R getEnd()
FacetParams.FACET_RANGE_ENDCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.