Apache Solr Documentation

6.4 Ref Guide (PDF Download)
Solr Tutorial
Solr Community Wiki

Older Versions of this Guide (PDF)

6.5 Draft Ref Guide Topics

Meta-Documentation

This Unreleased Guide Will Cover Apache Solr 6.5

Skip to end of metadata
Go to start of metadata

As described in the section Overview of Searching in Solr, faceting is the arrangement of search results into categories based on indexed terms. Searchers are presented with the indexed terms, along with numerical counts of how many matching documents were found were each term. Faceting makes it easy for users to explore search results, narrowing in on exactly the results they are looking for.

Topics covered in this section:

General Parameters

The table below summarizes the general parameters for controlling faceting.

Parameter

Description

facet

If set to true, enables faceting.

facet.query

Specifies a Lucene query to generate a facet count.

These parameters are described in the sections below.

The facet Parameter

If set to "true," this parameter enables facet counts in the query response. If set to "false" to a blank or missing value, this parameter disables faceting. None of the other parameters listed below will have any effect unless this parameter is set to "true." The default value is blank.

The facet.query Parameter

This parameter allows you to specify an arbitrary query in the Lucene default syntax to generate a facet count. By default, Solr's faceting feature automatically determines the unique terms for a field and returns a count for each of those terms. Using facet.query, you can override this default behavior and select exactly which terms or expressions you would like to see counted. In a typical implementation of faceting, you will specify a number of facet.query parameters. This parameter can be particularly useful for numeric-range-based facets or prefix-based facets.

You can set the facet.query parameter multiple times to indicate that multiple queries should be used as separate facet constraints.

To use facet queries in a syntax other than the default syntax, prefix the facet query with the name of the query notation. For example, to use the hypothetical myfunc query parser, you could set the facet.query parameter like so:

facet.query={!myfunc}name~fred

Field-Value Faceting Parameters

Several parameters can be used to trigger faceting based on the indexed terms in a field.

When using this parameter, it is important to remember that "term" is a very specific concept in Lucene: it relates to the literal field/value pairs that are indexed after any analysis occurs. For text fields that include stemming, lowercasing, or word splitting, the resulting terms may not be what you expect. If you want Solr to perform both analysis (for searching) and faceting on the full literal strings, use the copyField directive in your Schema to create two versions of the field: one Text and one String. Make sure both are indexed="true". (For more information about the copyField directive, see Documents, Fields, and Schema Design.)

The table below summarizes Solr's field value faceting parameters.

 

Parameter

Description

facet.field

Identifies a field to be treated as a facet.

facet.prefix

Limits the terms used for faceting to those that begin with the specified prefix.

facet.containsLimits the terms used for faceting to those that contain the specified substring.
facet.contains.ignoreCaseIf facet.contains is used, ignore case when searching for the specified substring.

facet.sort

Controls how faceted results are sorted.

facet.limit

Controls how many constraints should be returned for each facet.

facet.offset

Specifies an offset into the facet results at which to begin displaying facets.

facet.mincount

Specifies the minimum counts required for a facet field to be included in the response.

facet.missing

Controls whether Solr should compute a count of all matching results which have no value for the field, in addition to the term-based constraints of a facet field.

facet.method

Selects the algorithm or method Solr should use when faceting a field.

facet.existsCaps facet counts by one. Available only for facet.method=enum as performance optimization.

facet.enum.cache.minDF

(Advanced) Specifies the minimum document frequency (the number of documents matching a term) for which the filterCache should be used when determining the constraint count for that term.

facet.overrequest.count (Advanced) A number of documents, beyond the effective facet.limit to request from each shard in a distributed search
facet.overrequest.ratio (Advanced) A multiplier of the effective facet.limit to request from each shard in a distributed search

facet.threads

(Advanced) Controls parallel execution of field faceting

These parameters are described in the sections below.

The facet.field Parameter

The facet.field parameter identifies a field that should be treated as a facet. It iterates over each Term in the field and generate a facet count using that Term as the constraint. This parameter can be specified multiple times in a query to select multiple facet fields.

If you do not set this parameter to at least one field in the schema, none of the other parameters described in this section will have any effect.

The facet.prefix Parameter

The facet.prefix parameter limits the terms on which to facet to those starting with the given string prefix. This does not limit the query in any way, only the facets that would be returned in response to the query.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.prefix.

The facet.contains Parameter

The facet.contains parameter limits the terms on which to facet to those containing the given substring. This does not limit the query in any way, only the facets that would be returned in response to the query.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.contains.

The facet.contains.ignoreCase Parameter

If facet.contains is used, the facet.contains.ignoreCase parameter causes case to be ignored when matching the given substring against candidate facet terms.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.contains.ignoreCase.

The facet.sort Parameter

This parameter determines the ordering of the facet field constraints.

facet.sort Setting

Results

count

Sort the constraints by count (highest count first).

index

Return the constraints sorted in their index order (lexicographic by indexed term). For terms in the ASCII range, this will be alphabetically sorted.

The default is count if facet.limit is greater than 0, otherwise, the default is index.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.sort.

The facet.limit Parameter

This parameter specifies the maximum number of constraint counts (essentially, the number of facets for a field that are returned) that should be returned for the facet fields. A negative value means that Solr will return unlimited number of constraint counts.

The default value is 100.

This parameter can be specified on a per-field basis to apply a distinct limit to each field with the syntax of f.<fieldname>.facet.limit.

The facet.offset Parameter

The facet.offset parameter indicates an offset into the list of constraints to allow paging.

The default value is 0.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.offset.

The facet.mincount Parameter

The facet.mincount parameter specifies the minimum counts required for a facet field to be included in the response. If a field's counts are below the minimum, the field's facet is not returned.

The default value is 0.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.mincount.

The facet.missing Parameter

If set to true, this parameter indicates that, in addition to the Term-based constraints of a facet field, a count of all results that match the query but which have no facet value for the field should be computed and returned in the response.

The default value is false.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.missing.

The facet.method Parameter

The facet.method parameter selects the type of algorithm or method Solr should use when faceting a field.

Setting

Results

enum

Enumerates all terms in a field, calculating the set intersection of documents that match the term with documents that match the query. This method is recommended for faceting multi-valued fields that have only a few distinct values. The average number of values per document does not matter. For example, faceting on a field with U.S. States such as Alabama, Alaska, ... Wyoming would lead to fifty cached filters which would be used over and over again. The filterCache should be large enough to hold all the cached filters.

fc

Calculates facet counts by iterating over documents that match the query and summing the terms that appear in each document. This is currently implemented using an UnInvertedField cache if the field either is multi-valued or is tokenized (according to FieldType.isTokened()). Each document is looked up in the cache to see what terms/values it contains, and a tally is incremented for each value. This method is excellent for situations where the number of indexed values for the field is high, but the number of values per document is low. For multi-valued fields, a hybrid approach is used that uses term filters from the filterCache for terms that match many documents. The letters fc stand for field cache.

fcs

Per-segment field faceting for single-valued string fields. Enable with facet.method=fcs and control the number of threads used with the threads local parameter. This parameter allows faceting to be faster in the presence of rapid index changes.

The default value is fc (except for fields using the BoolField field type and when facet.exists=true is requsted) since it tends to use less memory and is faster when a field has many unique terms in the index.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.method.

The facet.enum.cache.minDf Parameter

This parameter indicates the minimum document frequency (the number of documents matching a term) for which the filterCache should be used when determining the constraint count for that term. This is only used with the facet.method=enum method of faceting.

A value greater than zero decreases the filterCache's memory usage, but increases the time required for the query to be processed. If you are faceting on a field with a very large number of terms, and you wish to decrease memory usage, try setting this parameter to a value between 25 and 50, and run a few tests. Then, optimize the parameter setting as necessary.

The default value is 0, causing the filterCache to be used for all terms in the field.

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.enum.cache.minDF.

The facet.exists Parameter

To cap facet counts by 1 specify facet.exists=true. It can be used with facet.method=enum or when it's omitted. It can be used only on non-trie fields i.e. strings. It may speed up facet counting on large indices and/or high-cardinality facet values..

This parameter can be specified on a per-field basis with the syntax of f.<fieldname>.facet.exists or via local parameter facet.field={!facet.method=enum facet.exists=true}size

Over-Request Parameters

In some situations, the accuracy in selecting the "top" constraints returned for a facet in a distributed Solr query can be improved by "Over Requesting" the number of desired constraints (ie: facet.limit) from each of the individual Shards.  In these situations, each shard is by default asked for the top "10 + (1.5 * facet.limit)" constraints.

In some situations, depending on how your docs are partitioned across your shards, and what facet.limit value you used, you may find it advantageous to increase or decrease the amount of over-requesting Solr does.  This can be achieved by setting the facet.overrequest.count (defaults to 10) and facet.overrequest.ratio (defaults to 1.5) parameters.

The facet.threads Parameter

This param will cause loading the underlying fields used in faceting to be executed in parallel with the number of threads specified. Specify as facet.threads=N where N is the maximum number of threads used. Omitting this parameter or specifying the thread count as 0 will not spawn any threads, and only the main request thread will be used. Specifying a negative number of threads will create up to Integer.MAX_VALUE threads.

Range Faceting

You can use Range Faceting on any date field or any numeric field that supports range queries. This is particularly useful for stitching together a series of range queries (as facet by query) for things like prices. As of Solr 3.1, Range Faceting is preferred over Date Faceting (described below).

Parameter

Description

facet.range

Specifies the field to facet by range.

facet.range.start

Specifies the start of the facet range.

facet.range.end

Specifies the end of the facet range.

facet.range.gap

Specifies the span of the range as a value to be added to the lower bound.

facet.range.hardend

A boolean parameter that specifies how Solr handles a range gap that cannot be evenly divided between the range start and end values. If true, the last range constraint will have the facet.range.end value an upper bound. If false, the last range will have the smallest possible upper bound greater then facet.range.end such that the range is the exact width of the specified range gap. The default value for this parameter is false.

facet.range.include

Specifies inclusion and exclusion preferences for the upper and lower bounds of the range. See the facet.range.include topic for more detailed information.

facet.range.other

Specifies counts for Solr to compute in addition to the counts for each facet range constraint.

facet.range.methodSpecifies the algorithm or method to use for calculating facets.

The facet.range Parameter

The facet.range parameter defines the field for which Solr should create range facets. For example:

facet.range=price&facet.range=age

facet.range=lastModified_dt

The facet.range.start Parameter

The facet.range.start parameter specifies the lower bound of the ranges. You can specify this parameter on a per field basis with the syntax of f.<fieldname>.facet.range.start. For example:

f.price.facet.range.start=0.0&f.age.facet.range.start=10

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

The facet.range.end Parameter

The facet.range.end specifies the upper bound of the ranges. You can specify this parameter on a per field basis with the syntax of f.<fieldname>.facet.range.end. For example:

f.price.facet.range.end=1000.0&f.age.facet.range.start=99

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

The facet.range.gap Parameter

The span of each range expressed as a value to be added to the lower bound. For date fields, this should be expressed using the DateMathParser syntax (such as, facet.range.gap=%2B1DAY ... '+1DAY'). You can specify this parameter on a per-field basis with the syntax of f.<fieldname>.facet.range.gap. For example:

f.price.facet.range.gap=100&f.age.facet.range.gap=10

f.lastModified_dt.facet.range.gap=+1DAY

The facet.range.hardend Parameter

The facet.range.hardend parameter is a Boolean parameter that specifies how Solr should handle cases where the facet.range.gap does not divide evenly between facet.range.start and facet.range.end. If true, the last range constraint will have the facet.range.end value as an upper bound. If false, the last range will have the smallest possible upper bound greater then facet.range.end such that the range is the exact width of the specified range gap. The default value for this parameter is false.

This parameter can be specified on a per field basis with the syntax f.<fieldname>.facet.range.hardend.

The facet.range.include Parameter

By default, the ranges used to compute range faceting between facet.range.start and facet.range.end are inclusive of their lower bounds and exclusive of the upper bounds. The "before" range defined with the facet.range.other parameter is exclusive and the "after" range is inclusive. This default, equivalent to "lower" below, will not result in double counting at the boundaries. You can use the facet.range.include parameter to modify this behavior using the following options:

Option

Description

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 (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 will be inclusive of their bounds, even if the first or last ranges already include those boundaries.

all

Includes all options: lower, upper, edge, outer.

You can specify this parameter on a per field basis with the syntax of f.<fieldname>.facet.range.include, and you can specify it multiple times to indicate multiple choices.

To ensure you avoid double-counting, do not choose both lower and upper, do not choose outer, and do not choose all.

The facet.range.other Parameter

The facet.range.other parameter specifies that in addition to the counts for each range constraint between facet.range.start and facet.range.end, counts should also be computed for these options:

Option

Description

before

All records with field values lower then lower bound of the first range.

after

All records with field values greater then the upper bound of the last range.

between

All records with field values between the start and end bounds of all ranges.

none

Do not compute any counts.

all

Compute counts for before, between, and after.

This parameter can be specified on a per field basis with the syntax of f.<fieldname>.facet.range.other. In addition to the all option, this parameter can be specified multiple times to indicate multiple choices, but none will override all other options.

The facet.range.method Parameter

The facet.range.method parameter selects the type of algorithm or method Solr should use for range faceting. Both methods produce the same results, but performance may vary.

MethodDescription
filterThis method generates the ranges based on other facet.range parameters, and for each of them executes a filter that later intersects with the main query resultset to get the count. It will make use of the filterCache, so it will benefit of a cache large enough to contain all ranges.
dvThis method iterates the documents that match the main query, and for each of them finds the correct range for the value. This method will make use of docValues (if enabled for the field) or fieldCache. "dv" method is not supported for field type DateRangeField or when using group.facets.

Default value for this parameter is "filter".

The facet.mincount Parameter in Range Faceting

The facet.mincount parameter, the same one as used in field faceting is also applied to range faceting. When used, no ranges with a count below the minimum will be included in the response.

Date Ranges & Time Zones

Range faceting on date fields is a common situation where the TZ parameter can be useful to ensure that the "facet counts per day" or "facet counts per month" are based on a meaningful definition of when a given day/month "starts" relative to a particular TimeZone.

For more information, see the examples in the Working with Dates section.

Pivot (Decision Tree) Faceting

Pivoting is a summarization tool that lets you automatically sort, count, total or average data stored in a table. The results are typically displayed in a second table showing the summarized data. Pivot faceting lets you create a summary table of the results from a faceting documents by multiple fields. 

Another way to look at it is that the query produces a Decision Tree, in that Solr tells you "for facet A, the constraints/counts are X/N, Y/M, etc. If you were to constrain A by X, then the constraint counts for B would be S/P, T/Q, etc.". In other words, it tells you in advance what the "next" set of facet results would be for a field if you apply a constraint from the current facet results.

facet.pivot

The facet.pivot parameter defines the fields to use for the pivot. Multiple facet.pivot values will create multiple "facet_pivot" sections in the response. Separate each list of fields with a comma.

facet.pivot.mincount

The facet.pivot.mincount parameter defines the minimum number of documents that need to match in order for the facet to be included in results. The default is 1.

Using the "bin/solr -e techproducts" example, A query URL like this one will return the data below, with the pivot faceting results found in the section "facet_pivot":

Combining Stats Component With Pivots

In addition to some of the  general local parameters supported by other types of faceting, a stats local parameters can be used with facet.pivot to refer to  stats.field instances (by tag) that you would like to have computed for each Pivot Constraint.

In the example below, two different (overlapping) sets of statistics are computed for each of the facet.pivot result hierarchies:

Results:

Combining Facet Queries And Facet Ranges With Pivot Facets

A query local parameter can be used with facet.pivot to refer to facet.query instances (by tag) that should be computed for each pivot constraint. Similarly, a range local parameter can be used with facet.pivot to refer to facet.range instances.

In the example below, two query facets are computed for h of the facet.pivot result hierarchies:

 

In a similar way, in the example below, two range facets are computed for each of the facet.pivot result hierarchies:

 

Additional Pivot Parameters

Although facet.pivot.mincount deviates in name from the facet.mincount parameter used by field faceting, many other Field faceting parameters described above can also be used with pivot faceting:

Interval Faceting

Another supported form of faceting is interval faceting. This sounds similar to range faceting, but the functionality is really closer to doing facet queries with range queries. Interval faceting allows you to set variable intervals and count the number of documents that have values within those intervals in the specified field.

Even though the same functionality can be achieved by using a facet query with range queries, the implementation of these two methods is very different and will provide different performance depending on the context. If you are concerned about the performance of your searches you should test with both options. Interval faceting tends to be better with multiple intervals for the same fields, while facet query tend to be better in environments where filter cache is more effective (static indexes for example). This method will use docValues if they are enabled for the field, will use fieldCache otherwise.

Name

What it does

facet.interval

Specifies the field to facet by interval.

facet.interval.set

Sets the intervals for the field.

The facet.interval parameter

This parameter Indicates the field where interval faceting must be applied. It can be used multiple times in the same request to indicate multiple fields.

facet.interval=price&facet.interval=size

The facet.interval.set parameter

This parameter is used to set the intervals for the field, it can be specified multiple times to indicate multiple intervals. This parameter is global, which means that it will be used for all fields indicated with facet.interval unless there is an override for a specific field. To override this parameter on a specific field you can use: f.<fieldname>.facet.interval.set, for example:

f.price.facet.interval.set=[0,10]&f.price.facet.interval.set=(10,100]

Interval Syntax

Intervals must begin with either '(' or '[', be followed by the start value, then a comma (','), the end value, and finally a closing ')' or ']’.

For example:

  • (1,10) -> will include values greater than 1 and lower than 10

  • [1,10) -> will include values greater or equal to 1 and lower than 10

  • [1,10] -> will include values greater or equal to 1 and lower or equal to 10

The initial and end values cannot be empty. If the interval needs to be unbounded, the special character '*' can be used for both, start and end limit. When using '*', '(' and '[', and ')' and ']' will be treated equal. [*,*] will include all documents with a value in the field. The interval limits may be strings but there is no need to add quotes. All the text until the comma will be treated as the start limit, and the text after that will be the end limit. For example: [Buenos Aires,New York]. Keep in mind that a string-like comparison will be done to match documents in string intervals (case-sensitive). The comparator can't be changed.

Commas, brackets and square brackets can be escaped by using '\' in front of them. Whitespaces before and after the values will be omitted. The start limit can't be grater than the end limit. Equal limits are allowed, this allows you to indicate the specific values that you want to count, like [A,A], [B,B] and [C,Z].

Interval faceting supports output key replacement described below. Output keys can be replaced in both the facet.interval parameter and in the facet.interval.set parameter. For example:

Local Parameters for Faceting

The LocalParams syntax allows overriding global settings. It can also provide a method of adding metadata to other parameter values, much like XML attributes.

Tagging and Excluding Filters

You can tag specific filters and exclude those filters when faceting. This is useful when doing multi-select faceting.

Consider the following example query with faceting:

q=mainquery&fq=status:public&fq=doctype:pdf&facet=true&facet.field=doctype

Because everything is already constrained by the filter doctype:pdf, the facet.field=doctype facet command is currently redundant and will return 0 counts for everything except doctype:pdf.

To implement a multi-select facet for doctype, a GUI may want to still display the other doctype values and their associated counts, as if the doctype:pdf constraint had not yet been applied. For example:

To return counts for doctype values that are currently not selected, tag filters that directly constrain doctype, and exclude those filters when faceting on doctype.

q=mainquery&fq=status:public&fq={!tag=dt}doctype:pdf&facet=true&facet.field={!ex=dt}doctype

Filter exclusion is supported for all types of facets. Both the tag and ex local parameters may specify multiple values by separating them with commas.

Changing the Output Key

To change the output key for a faceting command, specify a new name with the key local parameter. For example:

facet.field={!ex=dt key=mylabel}doctype

The parameter setting above causes the field facet results for the "doctype" field to be returned using the key "mylabel" rather than "doctype" in the response. This can be helpful when faceting on the same field multiple times with different exclusions.

Limiting facet with certain terms

To limit field facet with certain terms specify them comma separated with terms local parameter. Commas and quotes in terms can be escaped with backslash \,. In this case facet is calculated on a way similar to facet.method=enum , but ignores facet.enum.cache.minDf.  For example:

facet.field={!terms='alfa,betta,with\,with\',with space'}symbol

Related Topics

 

  • No labels

13 Comments

  1. The "facet" param description reads:

    None of the other parameters listed below will have any effect unless this parameter is set to "true." The default value is blank.

    Then the tagging and excluding example has "facet=on" (not "true") but the other parameters are respected.  

    1. great catch Gregory.

      "on" is a accepted synonym for "true" when parsing boolean param values in most of Solr – largely for historic reasons related to html form data defaults for checkboxes. 

      I've updated the examples to fit better with the explicitly documented (and recommended) value of "true"

  2. Would be nice to have an example of range faceting on dates.  In general, more examples would be good, as I still go to the wiki for these.

  3. Clicking on any of the params under "Field-Value Faceting Parameters" doesn't take you to the detailed description for it.

  4. Check me out on this, but the variable-gap facet.range.gap JIRA was never committed, see:  SOLR-2366 - Facet Range Gaps Resolved . I looked at the patch and current 5x code and the changes in the patch aren't in the code (or I'm missing something here). Let's take this out of the docs or see the patch committed?

  5. I just noticed the local params section doesn't really mention that most of the facet params "options" can be specified as local params in situations where you want to facet on the same field in different ways.

     

    until I have a chance to write this up more thoroughly, here's a quick techproducts example...

     

    q = inStock:true
    facet = true

    facet.range = {!key=bigbuckets facet.range.gap='+100' facet.range.end=1000}price
    facet.range = {!key=smallbuckets facet.range.gap='+50' facet.range.end=500}price
    facet.range.start = 0

    facet.field = {!key=alphacat facet.sort=index facet.mincount=0}cat
    facet.field = {!key=topcat facet.sort=count}cat

    http://localhost:8983/solr/techproducts/select?q=inStock:true&facet=true&facet.field={!key=alphacat%20facet.sort=index%20facet.mincount=0}cat&facet.field={!key=topcat%20facet.sort=count}cat&facet.range={!key=bigbuckets%20facet.range.gap=%27%2B100%27%20facet.range.end=1000}price&facet.range={!key=smallbuckets%20facet.range.gap=%27%2B50%27%20facet.range.end=500}price&facet.range.start=0


     

     

  6. It seems that some of the parameters currently described in "Field-Value Faceting Parameters" are also applicable to "Range Faceting." For example, facet.mincount definitely works with ranges, though facet.sort does not. I haven't tested all the others (still a newbie at solr).

    The facet.mincount parameter is a counter-example to the caution on facet.field, "If you do not set this parameter to at least one field in the schema, none of the other parameters described in this section will have any effect."

    Should parameters that apply both to Field-value facets and Range facets be moved to the General section?

  7. I think that two points must be mentioned in this guide:
    1. There are some parameters that does not only impact query performance, but may cause wrong result.
    for example: Say I have 2 shards, and field 'f' is indexed with the following terms count:

    shard 1:

    term'A''B''D''C'
    count5431

    shard 2:

    term'A''C''D''B'
    count5431

    we would like to execute the following search request: q=*:*&facet.field=f&limit=2

    Expected result would be:

    TermTotal count
    'A'10
    'D'6

    In this case, if we won't customize facet.overrequest.count and facet.overrequest.ratio parameters, the returned result is correct (because of the default value for facet.overrequest.ratio request param)
    But if we set facet.overrequest.ratio=1&facet.overrequest.count=0 'D' will not be aggregated and will be excluded from the result - and we will get the wrong answer.

    2. Solr facets may return incorrect numerical counts even with default query parameters, though its unlikely (again, because not ALL terms are being aggregated)

    Please correct me if I am wrong.

  8. Mikhail Khludnev are you sure the local-params with an unqualified "exists" works?  I would expect "facet.exists" would but not just "exists".

    1. ohhh yes! Thank you, Mr David Smiley. Just fixed it.

  9. I want to facet only return min,max value. 

    How to config in solrconfig.xml?

  10. Small typo in the section with facet.pivot.mincount.

    Using the "bin/solr -e techproducts" example, A query URL like this one will returns the data below, with the pivot faceting results found in the section "facet_pivot":

    should read: will return.

    An idea: it would also help to give solrj version of the queries. Some non-obvious ones are, for instance, setting the facet.pivot fields: if strings are passed as varags, they get into their own facet.pivot fields of a query and not in a combined facet.pivot. So implicit comma separated pivot field list is required for the case.