Package org.apache.solr.common.params
Interface FacetParams
- 
 public interface FacetParamsFacet parameters
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classFacetParams.FacetRangeIncludeAn enumeration of the legal values forFACET_DATE_INCLUDEandFACET_RANGE_INCLUDE
 lower = all gap based ranges include their lower bound upper = all gap based ranges include their upper bound edge = the first and last gap ranges include their edge bounds (ie: lower for the first one, upper for the last one) even if the corresponding upper/lower option is not specified outer = the BEFORE and AFTER ranges should be inclusive of their bounds, even if the first or last ranges already include those boundaries.static classFacetParams.FacetRangeMethodAn enumeration of the legal values forFACET_RANGE_METHODfilter = dv =static classFacetParams.FacetRangeOtherAn enumeration of the legal values forFACET_RANGE_OTHERandFACET_DATE_OTHER...
 - 
Field SummaryFields Modifier and Type Field Description static StringFACETShould facet counts be calculated?static StringFACET_CONTAINSOnly return constraints of a facet field containing the given string.static StringFACET_CONTAINS_IGNORE_CASEIf using facet contains, ignore case when comparing values.static StringFACET_DATEAny field whose terms the user wants to enumerate over for Facet Contraint Counts (multi-value)static StringFACET_DATE_ENDDate string indicating the ending point for a date facet range.static StringFACET_DATE_GAPDate Math string indicating the interval of sub-ranges for a date facet range.static StringFACET_DATE_HARD_ENDBoolean indicating how counts should be computed if the range between 'start' and 'end' is not evenly divisible by 'gap'.static StringFACET_DATE_INCLUDEMultivalued string indicating what rules should be applied to determine when the the ranges generated for date faceting should be inclusive or exclusive of their end points.static StringFACET_DATE_OTHERString indicating what "other" ranges should be computed for a date facet range (multi-value).static StringFACET_DATE_STARTDate string indicating the starting point for a date facet range.static StringFACET_DISTRIBstatic StringFACET_DISTRIB_MCODeprecated.This option is no longer used nor will if affect any queries as the fix has been built in.static StringFACET_ENUM_CACHE_MINDFWhen faceting by enumerating the terms in a field, only use the filterCache for terms with a df >= to this parameter.static StringFACET_EXCLUDETERMSOnly return constraints of a facet field excluding the given string.static StringFACET_EXISTSA boolean parameter that caps the facet counts at 1.static StringFACET_FIELDAny field whose terms the user wants to enumerate over for Facet Constraint Counts (multi-value)static StringFACET_HEATMAPA spatial RPT field to generate a 2D "heatmap" (grid of facet counts) on.static StringFACET_HEATMAP_DIST_ERRUsed to determine the heatmap grid level to compute (optional).static StringFACET_HEATMAP_DIST_ERR_PCTUsed to determine the heatmap grid level to compute, defaulting to 0.15.static StringFACET_HEATMAP_FORMATThe format of the heatmap: either png or ints2D (default).static StringFACET_HEATMAP_GEOMThe region the heatmap should minimally enclose.static StringFACET_HEATMAP_LEVELSpecify the heatmap grid level explicitly, instead of deriving it via distErr or distErrPct.static StringFACET_HEATMAP_MAX_CELLSThe maximum number of cells (grid squares) the client is willing to handle.static StringFACET_INTERVALAny field whose values the user wants to enumerate as explicit intervals of terms.static StringFACET_INTERVAL_SETSet of terms for a single interval to facet on.static StringFACET_LIMITNumeric option indicating the maximum number of facet field counts be included in the response for each field - in descending order of count.static StringFACET_MATCHESOnly return constraints of a facet field containing the given string.static StringFACET_METHODWhat method should be used to do the facetingstatic StringFACET_METHOD_enumValue for FACET_METHOD param to indicate that Solr should enumerate over terms in a field to calculate the facet counts.static StringFACET_METHOD_fcValue for FACET_METHOD param to indicate that Solr should enumerate over documents and count up terms by consulting an uninverted representation of the field values (such as the FieldCache used for sorting).static StringFACET_METHOD_fcsValue for FACET_METHOD param, like FACET_METHOD_fc but counts per-segment.static StringFACET_METHOD_uifValue for FACET_METHOD param to indicate that Solr should use an UnInvertedFieldstatic StringFACET_MINCOUNTNumeric option indicating the minimum number of hits before a facet should be included in the response.static StringFACET_MISSINGBoolean option indicating whether the response should include a facet field count for all records which have no value for the facet field.static StringFACET_OFFSETThe offset into the list of facets.static StringFACET_OVERREQUESTstatic StringFACET_OVERREQUEST_COUNTAn additional amount to over-request by when performing initial distributed requests.static StringFACET_OVERREQUEST_RATIOThe percentage to over-request by when performing initial distributed requests.static StringFACET_PIVOTComma separated list of fields to pivot example: author,type (for types by author / types within author)static StringFACET_PIVOT_MINCOUNTMinimum number of docs that need to match to be included in the sublist default value is 1static StringFACET_PREFIXOnly return constraints of a facet field with the given prefix.static StringFACET_QUERYAny lucene formated queries the user would like to use for Facet Constraint Counts (multi-value)static StringFACET_RANGEAny numerical field whose terms the user wants to enumerate over Facet Contraint Counts for selected ranges.static StringFACET_RANGE_ENDNumber indicating the ending point for a numerical range facet.static StringFACET_RANGE_GAPNumber indicating the interval of sub-ranges for a numerical facet range.static StringFACET_RANGE_HARD_ENDBoolean indicating how counts should be computed if the range between 'start' and 'end' is not evenly divisible by 'gap'.static StringFACET_RANGE_INCLUDEMultivalued string indicating what rules should be applied to determine when the the ranges generated for numeric faceting should be inclusive or exclusive of their end points.static StringFACET_RANGE_METHODString indicating the method to use to resolve range facets.static StringFACET_RANGE_OTHERString indicating what "other" ranges should be computed for a numerical range facet (multi-value).static StringFACET_RANGE_STARTNumber indicating the starting point for a numerical range facet.static StringFACET_SORTString option: "count" causes facets to be sorted by the count, "index" results in index order.static StringFACET_SORT_COUNTstatic StringFACET_SORT_COUNT_LEGACYstatic StringFACET_SORT_INDEXstatic StringFACET_SORT_INDEX_LEGACYstatic StringFACET_THREADSNumeric option indicating the maximum number of threads to be used in counting facet field valesstatic StringFACET_ZEROSBoolean option indicating whether facet field counts of "0" should be included in the response.
 
- 
- 
- 
Field Detail- 
FACETstatic final String FACET Should facet counts be calculated?- See Also:
- Constant Field Values
 
 - 
FACET_THREADSstatic final String FACET_THREADS Numeric option indicating the maximum number of threads to be used in counting facet field vales- See Also:
- Constant Field Values
 
 - 
FACET_METHODstatic final String FACET_METHOD What method should be used to do the faceting- See Also:
- Constant Field Values
 
 - 
FACET_METHOD_enumstatic final String FACET_METHOD_enum Value for FACET_METHOD param to indicate that Solr should enumerate over terms in a field to calculate the facet counts.- See Also:
- Constant Field Values
 
 - 
FACET_METHOD_fcstatic final String FACET_METHOD_fc Value for FACET_METHOD param to indicate that Solr should enumerate over documents and count up terms by consulting an uninverted representation of the field values (such as the FieldCache used for sorting).- See Also:
- Constant Field Values
 
 - 
FACET_METHOD_fcsstatic final String FACET_METHOD_fcs Value for FACET_METHOD param, like FACET_METHOD_fc but counts per-segment.- See Also:
- Constant Field Values
 
 - 
FACET_METHOD_uifstatic final String FACET_METHOD_uif Value for FACET_METHOD param to indicate that Solr should use an UnInvertedField- See Also:
- Constant Field Values
 
 - 
FACET_QUERYstatic final String FACET_QUERY Any lucene formated queries the user would like to use for Facet Constraint Counts (multi-value)- See Also:
- Constant Field Values
 
 - 
FACET_FIELDstatic final String FACET_FIELD Any field whose terms the user wants to enumerate over for Facet Constraint Counts (multi-value)- See Also:
- Constant Field Values
 
 - 
FACET_OFFSETstatic final String FACET_OFFSET The offset into the list of facets. Can be overridden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_LIMITstatic final String FACET_LIMIT Numeric option indicating the maximum number of facet field counts be included in the response for each field - in descending order of count. Can be overridden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_MINCOUNTstatic final String FACET_MINCOUNT Numeric option indicating the minimum number of hits before a facet should be included in the response. Can be overridden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_ZEROSstatic final String FACET_ZEROS Boolean option indicating whether facet field counts of "0" should be included in the response. Can be overridden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_MISSINGstatic final String FACET_MISSING Boolean option indicating whether the response should include a facet field count for all records which have no value for the facet field. Can be overridden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_OVERREQUESTstatic final String FACET_OVERREQUEST - See Also:
- Constant Field Values
 
 - 
FACET_OVERREQUEST_RATIOstatic final String FACET_OVERREQUEST_RATIO The percentage to over-request by when performing initial distributed requests. default value is 1.5- See Also:
- Constant Field Values
 
 - 
FACET_OVERREQUEST_COUNTstatic final String FACET_OVERREQUEST_COUNT An additional amount to over-request by when performing initial distributed requests. This value will be added after accounting for the over-request ratio. default value is 10- See Also:
- Constant Field Values
 
 - 
FACET_DISTRIBstatic final String FACET_DISTRIB - See Also:
- Constant Field Values
 
 - 
FACET_DISTRIB_MCO@Deprecated static final String FACET_DISTRIB_MCO Deprecated.This option is no longer used nor will if affect any queries as the fix has been built in. (SOLR-11711) This will be removed entirely in 8.0.0If we are returning facet field counts, are sorting those facets by their count, and the minimum count to return is > 0, then allow the use of facet.mincount = 1 in cloud mode. To enable this use facet.distrib.mco=true. i.e. If the following three conditions are met in cloud mode: facet.sort=count, facet.limit > 0, facet.mincount > 0. Then use facet.mincount=1. Previously and by default facet.mincount will be explicitly set to 0 when in cloud mode for this condition. In SOLR-8599 and SOLR-8988, significant performance increase has been seen when enabling this optimization. Note: enabling this flag has no effect when the conditions above are not met. For those other cases the default behavior is sufficient.- See Also:
- Constant Field Values
 
 - 
FACET_PIVOTstatic final String FACET_PIVOT Comma separated list of fields to pivot example: author,type (for types by author / types within author)- See Also:
- Constant Field Values
 
 - 
FACET_PIVOT_MINCOUNTstatic final String FACET_PIVOT_MINCOUNT Minimum number of docs that need to match to be included in the sublist default value is 1- See Also:
- Constant Field Values
 
 - 
FACET_SORTstatic final String FACET_SORT String option: "count" causes facets to be sorted by the count, "index" results in index order.- See Also:
- Constant Field Values
 
 - 
FACET_SORT_COUNTstatic final String FACET_SORT_COUNT - See Also:
- Constant Field Values
 
 - 
FACET_SORT_COUNT_LEGACYstatic final String FACET_SORT_COUNT_LEGACY - See Also:
- Constant Field Values
 
 - 
FACET_SORT_INDEXstatic final String FACET_SORT_INDEX - See Also:
- Constant Field Values
 
 - 
FACET_SORT_INDEX_LEGACYstatic final String FACET_SORT_INDEX_LEGACY - See Also:
- Constant Field Values
 
 - 
FACET_PREFIXstatic final String FACET_PREFIX Only return constraints of a facet field with the given prefix.- See Also:
- Constant Field Values
 
 - 
FACET_CONTAINSstatic final String FACET_CONTAINS Only return constraints of a facet field containing the given string.- See Also:
- Constant Field Values
 
 - 
FACET_MATCHESstatic final String FACET_MATCHES Only return constraints of a facet field containing the given string.- See Also:
- Constant Field Values
 
 - 
FACET_CONTAINS_IGNORE_CASEstatic final String FACET_CONTAINS_IGNORE_CASE If using facet contains, ignore case when comparing values.- See Also:
- Constant Field Values
 
 - 
FACET_EXCLUDETERMSstatic final String FACET_EXCLUDETERMS Only return constraints of a facet field excluding the given string.- See Also:
- Constant Field Values
 
 - 
FACET_ENUM_CACHE_MINDFstatic final String FACET_ENUM_CACHE_MINDF When faceting by enumerating the terms in a field, only use the filterCache for terms with a df >= to this parameter.- See Also:
- Constant Field Values
 
 - 
FACET_EXISTSstatic final String FACET_EXISTS A boolean parameter that caps the facet counts at 1. With this set, a returned count will only be 0 or 1. For apps that don't need the count, this should be an optimization- See Also:
- Constant Field Values
 
 - 
FACET_DATEstatic final String FACET_DATE Any field whose terms the user wants to enumerate over for Facet Contraint Counts (multi-value)- See Also:
- Constant Field Values
 
 - 
FACET_DATE_STARTstatic final String FACET_DATE_START Date string indicating the starting point for a date facet range. Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_DATE_ENDstatic final String FACET_DATE_END Date string indicating the ending point for a date facet range. Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_DATE_GAPstatic final String FACET_DATE_GAP Date Math string indicating the interval of sub-ranges for a date facet range. Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_DATE_HARD_ENDstatic final String FACET_DATE_HARD_END Boolean indicating how counts should be computed if the range between 'start' and 'end' is not evenly divisible by 'gap'. If this value is true, then all counts of ranges involving the 'end' point will use the exact endpoint specified -- this includes the 'between' and 'after' counts as well as the last range computed using the 'gap'. If the value is false, then 'gap' is used to compute the effective endpoint closest to the 'end' param which results in the range between 'start' and 'end' being evenly divisible by 'gap'. The default is false. Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_DATE_OTHERstatic final String FACET_DATE_OTHER String indicating what "other" ranges should be computed for a date facet range (multi-value). Can be overriden on a per field basis.- See Also:
- FacetParams.FacetRangeOther, Constant Field Values
 
 - 
FACET_DATE_INCLUDEstatic final String FACET_DATE_INCLUDE Multivalued string indicating what rules should be applied to determine when the the ranges generated for date faceting should be inclusive or exclusive of their end points. The default value if none are specified is: [lower,upper,edge] (NOTE: This is different then FACET_RANGE_INCLUDE) Can be overriden on a per field basis. 
 - 
FACET_RANGEstatic final String FACET_RANGE Any numerical field whose terms the user wants to enumerate over Facet Contraint Counts for selected ranges.- See Also:
- Constant Field Values
 
 - 
FACET_RANGE_STARTstatic final String FACET_RANGE_START Number indicating the starting point for a numerical range facet. Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_RANGE_ENDstatic final String FACET_RANGE_END Number indicating the ending point for a numerical range facet. Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_RANGE_GAPstatic final String FACET_RANGE_GAP Number indicating the interval of sub-ranges for a numerical facet range. Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_RANGE_HARD_ENDstatic final String FACET_RANGE_HARD_END Boolean indicating how counts should be computed if the range between 'start' and 'end' is not evenly divisible by 'gap'. If this value is true, then all counts of ranges involving the 'end' point will use the exact endpoint specified -- this includes the 'between' and 'after' counts as well as the last range computed using the 'gap'. If the value is false, then 'gap' is used to compute the effective endpoint closest to the 'end' param which results in the range between 'start' and 'end' being evenly divisible by 'gap'. The default is false. Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_RANGE_OTHERstatic final String FACET_RANGE_OTHER String indicating what "other" ranges should be computed for a numerical range facet (multi-value). Can be overriden on a per field basis.- See Also:
- Constant Field Values
 
 - 
FACET_RANGE_INCLUDEstatic final String FACET_RANGE_INCLUDE Multivalued string indicating what rules should be applied to determine when the the ranges generated for numeric faceting should be inclusive or exclusive of their end points. The default value if none are specified is: lower Can be overriden on a per field basis. 
 - 
FACET_RANGE_METHODstatic final String FACET_RANGE_METHOD String indicating the method to use to resolve range facets.Can be overriden on a per field basis. 
 - 
FACET_INTERVALstatic final String FACET_INTERVAL Any field whose values the user wants to enumerate as explicit intervals of terms.- See Also:
- Constant Field Values
 
 - 
FACET_INTERVAL_SETstatic final String FACET_INTERVAL_SET Set of terms for a single interval to facet on.- See Also:
- Constant Field Values
 
 - 
FACET_HEATMAPstatic final String FACET_HEATMAP A spatial RPT field to generate a 2D "heatmap" (grid of facet counts) on. Just like the other faceting types, this may include a 'key' or local-params to facet multiple times. All parameters with this suffix can be overridden on a per-field basis.- See Also:
- Constant Field Values
 
 - 
FACET_HEATMAP_FORMATstatic final String FACET_HEATMAP_FORMAT The format of the heatmap: either png or ints2D (default).- See Also:
- Constant Field Values
 
 - 
FACET_HEATMAP_GEOMstatic final String FACET_HEATMAP_GEOM The region the heatmap should minimally enclose. It defaults to the world if not set. The format can either be a minimum to maximum point range format:["-150 10" TO "-100 30"] (the first is bottom-left and second is bottom-right, both of which are parsed as points are parsed). OR, any WKT can be provided and it's bounding box will be taken.- See Also:
- Constant Field Values
 
 - 
FACET_HEATMAP_LEVELstatic final String FACET_HEATMAP_LEVEL Specify the heatmap grid level explicitly, instead of deriving it via distErr or distErrPct.- See Also:
- Constant Field Values
 
 - 
FACET_HEATMAP_DIST_ERR_PCTstatic final String FACET_HEATMAP_DIST_ERR_PCT Used to determine the heatmap grid level to compute, defaulting to 0.15. It has the same interpretation of distErrPct when searching on RPT, but relative to the shape in 'bbox'. It's a fraction (not a %) of the radius of the shape that grid squares must fit into without exceeding. > 0 and <= 0.5. Mutually exclusive with distErr & gridLevel.- See Also:
- Constant Field Values
 
 - 
FACET_HEATMAP_DIST_ERRstatic final String FACET_HEATMAP_DIST_ERR Used to determine the heatmap grid level to compute (optional). It has the same interpretation of maxDistErr or distErr with RPT. It's an absolute distance (in units of what's specified on the field type) that a grid square must maximally fit into (width & height). It can be used to to more explicitly specify the maximum grid square size without knowledge of what particular grid levels translate to. This can in turn be used with knowledge of the size of 'bbox' to get a target minimum number of grid cells. Mutually exclusive with distErrPct & gridLevel.- See Also:
- Constant Field Values
 
 - 
FACET_HEATMAP_MAX_CELLSstatic final String FACET_HEATMAP_MAX_CELLS The maximum number of cells (grid squares) the client is willing to handle. If this limit would be exceeded, we throw an error instead. Defaults to 100k.- See Also:
- Constant Field Values
 
 
- 
 
-