You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ja...@apache.org on 2023/02/15 16:39:18 UTC

[solr] 01/01: SOLR-16660 Deprecate analytics component

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch SOLR-16660-deprecate-analytics
in repository https://gitbox.apache.org/repos/asf/solr.git

commit d98b09e6b3b2e00be23871ed86c9f4995921067e
Author: Jan Høydahl <ja...@users.noreply.github.com>
AuthorDate: Wed Feb 15 17:39:01 2023 +0100

    SOLR-16660 Deprecate analytics component
---
 solr/CHANGES.txt                                                        | 2 ++
 .../configuration-guide/pages/requesthandlers-searchcomponents.adoc     | 2 +-
 .../modules/query-guide/pages/analytics-expression-sources.adoc         | 2 ++
 .../modules/query-guide/pages/analytics-mapping-functions.adoc          | 2 ++
 .../modules/query-guide/pages/analytics-reduction-functions.adoc        | 2 ++
 solr/solr-ref-guide/modules/query-guide/pages/analytics.adoc            | 2 ++
 .../modules/upgrade-notes/pages/major-changes-in-solr-9.adoc            | 1 +
 7 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 305c1778ffd..7a4e8adc118 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -282,6 +282,8 @@ Other Changes
 * SOLR-16573: Introduce EmbeddedSolrServerTestRule, a JUnit 4 TestRule for Solr testing
   (Joshua Ouma, David Smiley)
 
+* SOLR-16660: Deprecate analytics component (janhoy)
+
 ==================  9.1.1 ==================
 
 Bug Fixes
diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/requesthandlers-searchcomponents.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/requesthandlers-searchcomponents.adoc
index 8a3144c6c61..08bf0d27f31 100644
--- a/solr/solr-ref-guide/modules/configuration-guide/pages/requesthandlers-searchcomponents.adoc
+++ b/solr/solr-ref-guide/modules/configuration-guide/pages/requesthandlers-searchcomponents.adoc
@@ -242,7 +242,7 @@ They are called in the order listed.
 Apart from default components, Solr ships with a number of additional - very useful - components.
 They do need to defined and referenced in `solrconfig.xml` to be actually used.
 
-* `AnalyticsComponent`, described in the section xref:query-guide:analytics.adoc[].
+* `AnalyticsComponent`, described in the section xref:query-guide:analytics.adoc[] (Deprecated).
 * `ClusteringComponent`, described in the section xref:query-guide:result-clustering.adoc[].
 * `PhrasesIdentificationComponent`, used to identify & score "phrases" found in the input string, based on shingles in indexed fields, described in the {solr-javadocs}/core/org/apache/solr/handler/component/PhrasesIdentificationComponent.html[PhrasesIdentificationComponent] javadocs.
 * `QueryElevationComponent`, described in the section xref:query-guide:query-elevation-component.adoc[].
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/analytics-expression-sources.adoc b/solr/solr-ref-guide/modules/query-guide/pages/analytics-expression-sources.adoc
index 267762b567a..dc26f37a5e8 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/analytics-expression-sources.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/analytics-expression-sources.adoc
@@ -18,6 +18,8 @@
 
 Expression sources are the source of the data being aggregated in xref:analytics.adoc#expressions[analytics expressions].
 
+WARNING: The analytics component is deprecated. We recommend looking into similar functionality found in xref:json-facet-api.adoc[JSON Facet API].
+
 These sources can be either Solr fields indexed with docValues, or constants.
 
 == Supported Field Types
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/analytics-mapping-functions.adoc b/solr/solr-ref-guide/modules/query-guide/pages/analytics-mapping-functions.adoc
index b1a2e7b62ec..5c46980bd36 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/analytics-mapping-functions.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/analytics-mapping-functions.adoc
@@ -18,6 +18,8 @@
 
 Mapping functions map values for each Solr Document or Reduction.
 
+WARNING: The analytics component is deprecated. We recommend looking into similar functionality found in xref:json-facet-api.adoc[JSON Facet API].
+
 Below is a list of all mapping functions provided by the Analytics Component.
 These mappings can be chained together to implement more complex functionality.
 
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/analytics-reduction-functions.adoc b/solr/solr-ref-guide/modules/query-guide/pages/analytics-reduction-functions.adoc
index 25255deabf5..21022fec18c 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/analytics-reduction-functions.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/analytics-reduction-functions.adoc
@@ -21,6 +21,8 @@ Reduction functions reduce the values of xref:analytics-expression-sources.adoc[
 and/or unreduced xref:analytics-mapping-functions.adoc[mapping functions]
 for every Solr Document to a single value.
 
+WARNING: The analytics component is deprecated. We recommend looking into similar functionality found in xref:json-facet-api.adoc[JSON Facet API].
+
 Below is a list of all reduction functions provided by the Analytics Component.
 These can be combined using mapping functions to implement more complex functionality.
 
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/analytics.adoc b/solr/solr-ref-guide/modules/query-guide/pages/analytics.adoc
index c2f0fedf646..ca1b362f869 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/analytics.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/analytics.adoc
@@ -20,6 +20,8 @@
 
 The Analytics Component allows users to calculate complex statistical aggregations over result sets.
 
+WARNING: The analytics component is deprecated. We recommend looking into similar functionality found in xref:json-facet-api.adoc[JSON Facet API].
+
 The component enables interacting with data in a variety of ways, both through a diverse set of analytics functions as well as powerful faceting functionality.
 The standard facets are supported within the analytics component with additions that leverage its analytical capabilities.
 
diff --git a/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc b/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc
index 27268ace1b6..277398c6bfb 100644
--- a/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc
+++ b/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc
@@ -67,6 +67,7 @@ Due to changes in Lucene 9, that isn't possible any more.
 == Solr 9.2
 === Upgrade to Jetty 10.x
 * Solr upgraded to Jetty 10.x from 9.x due to Jetty 9.x is now end of life. Jetty 10.x has a Java 11 minimum and matches Solr 9 minimum Java version. Jetty logging has been replaced with slf4j again matching Solr. See https://webtide.com/jetty-10-and-11-have-arrived/ for additional Jetty 10.x highlights.
+* The xref:query-guide:analyxtics.adoc[Analytics Component] has been deprecated. Consider using xref:query-guide:json-facet-api.adoc[JSON Facet API] as a substitute.
 
 === Jetty Configuration
 * Solr no longer duplicates certain Jetty "server" library dependencies between `server/lib` and `WEB-INF/lib` (jetty-util, jetty-io, etc.).