You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2017/05/26 09:42:21 UTC

[4/8] lucene-solr:jira/solr-8668: Remove deprecated/discouraged usage from stats component docs

Remove deprecated/discouraged usage from stats component docs

These alternate syntax options have been deprecated since 5.0/5.1


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/077c9ec9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/077c9ec9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/077c9ec9

Branch: refs/heads/jira/solr-8668
Commit: 077c9ec98f7c9d965cbd273054898145012fa42c
Parents: 17130e6
Author: Chris Hostetter <ho...@apache.org>
Authored: Thu May 25 11:31:16 2017 -0700
Committer: Chris Hostetter <ho...@apache.org>
Committed: Thu May 25 11:31:16 2017 -0700

----------------------------------------------------------------------
 solr/solr-ref-guide/src/the-stats-component.adoc | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/077c9ec9/solr/solr-ref-guide/src/the-stats-component.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/the-stats-component.adoc b/solr/solr-ref-guide/src/the-stats-component.adoc
index 0e4fa4d..8014ccf 100644
--- a/solr/solr-ref-guide/src/the-stats-component.adoc
+++ b/solr/solr-ref-guide/src/the-stats-component.adoc
@@ -43,16 +43,6 @@ Specifies a field for which statistics should be generated. This parameter may b
 
 <<local-parameters-in-queries.adoc#local-parameters-in-queries,Local Parameters>> may be used to indicate which subset of the supported statistics should be computed, and/or that statistics should be computed over the results of an arbitrary numeric function (or query) instead of a simple field name. See the examples below.
 
-|stats.facet a|
-Returns sub-results for values within the specified facet.
-
-This legacy parameter is not recommended for new users - instead please consider <<TheStatsComponent-TheStatsComponentandFaceting,combining `stats.field` with `facet.pivot`>>
-
-|stats.calcdistinct a|
-If **true**, the "countDistinct" and "distinctValues" statistics will be computed and included the response. These calculations can be very expensive for fields that do not have a tiny cardinality, so they are disabled by default.
-
-This parameter can be specified using per-filed override (ie: `f.<field>.stats.calcdistinct=true`) but users are encouraged to instead the statistics desired <<TheStatsComponent-LocalParameters,as Local Parameter>> - As a top level request parameter, this option is deprecated.
-
 |===
 
 [[TheStatsComponent-Example]]
@@ -151,7 +141,6 @@ Additional "Expert" local params are supported in some cases for affecting the b
 ** `hllPreHashed` - a boolean option indicating that the statistics are being computed over a "long" field that has already been hashed at index time – allowing the HLL computation to skip this step.
 ** `hllLog2m` - an integer value specifying an explicit "log2m" value to use, overriding the heuristic value determined by the cardinality local param and the field type – see the https://github.com/aggregateknowledge/java-hll/[java-hll] documentation for more details
 ** `hllRegwidth` - an integer value specifying an explicit "regwidth" value to use, overriding the heuristic value determined by the cardinality local param and the field type – see the https://github.com/aggregateknowledge/java-hll/[java-hll] documentation for more details
-* `calcDistinct` - for backwards compatibility, `calcDistinct=true` may be specified as an alias for both `countDistinct=true distinctValues=true`
 
 [[TheStatsComponent-Examples]]
 === Examples
@@ -190,6 +179,6 @@ Here we compute some statistics for the price field. The min, max, mean, 90th, a
 [[TheStatsComponent-TheStatsComponentandFaceting]]
 == The Stats Component and Faceting
 
-Although the `stats.facet` parameter is no longer recommended, sets of `stats.field` parameters can be referenced by '`tag`' when using Pivot Faceting to compute multiple statistics at every level (i.e.: field) in the tree of pivot constraints.
+Sets of `stats.field` parameters can be referenced by '`tag`' when using Pivot Faceting to compute multiple statistics at every level (i.e.: field) in the tree of pivot constraints.
 
 For more information and a detailed example, please see <<faceting.adoc#Faceting-CombiningStatsComponentWithPivots,Combining Stats Component With Pivots>>.