From be5f73c73a1ad0400ad4d753e9683fde9ca688ac Mon Sep 17 00:00:00 2001 From: Joel Bernstein Date: Mon, 26 Mar 2018 18:00:44 -0400 Subject: [PATCH] SOLR-11947: Fix ref guide jenkins errors --- solr/solr-ref-guide/src/machine-learning.adoc | 8 ++--- solr/solr-ref-guide/src/math-expressions.adoc | 30 +++++++++---------- .../src/parallel-sql-interface.adoc | 2 +- ...ty.adoc => probability-distributions.adoc} | 4 +-- .../src/{montecarlo.adoc => simulations.adoc} | 0 .../src/statistical-programming.adoc | 2 +- solr/solr-ref-guide/src/term-vectors.adoc | 2 +- 7 files changed, 24 insertions(+), 24 deletions(-) rename solr/solr-ref-guide/src/{probability.adoc => probability-distributions.adoc} (99%) rename solr/solr-ref-guide/src/{montecarlo.adoc => simulations.adoc} (100%) diff --git a/solr/solr-ref-guide/src/machine-learning.adoc b/solr/solr-ref-guide/src/machine-learning.adoc index cbb3e05fb72..577220a06cf 100644 --- a/solr/solr-ref-guide/src/machine-learning.adoc +++ b/solr/solr-ref-guide/src/machine-learning.adoc @@ -124,7 +124,7 @@ This expression returns the following response: } ---- -=== Unitize +=== Unit Vectors The `unitize` function scales vectors to a magnitude of 1. A vector with a magnitude of 1 is known as a unit vector. Unit vectors are @@ -171,7 +171,7 @@ This expression returns the following response: } ---- -== Distance +== Distance Measures The `distance` function computes a distance measure for two numeric arrays or a *distance matrix* for the columns of a matrix. @@ -267,7 +267,7 @@ Once the clustering has been completed there are a number of useful functions av for examining the *clusters* and *centroids*. The examples below are clustering *term vectors*. -The chapter on link:term-vectors.adoc[Text Analysis and Term Vectors] should be +The chapter on link:term-vectors.adoc#term-vectors[Text Analysis and Term Vectors] should be consulted for a full explanation of these features. === Centroid Features @@ -603,7 +603,7 @@ This expression returns the following response: } ---- -== K-nearest Neighbor +== K-nearest Neighbor (knn) The `knn` function searches the rows of a matrix for the K-nearest neighbors of a search vector. The `knn` function diff --git a/solr/solr-ref-guide/src/math-expressions.adoc b/solr/solr-ref-guide/src/math-expressions.adoc index e2ed438b798..77d563bdcd2 100644 --- a/solr/solr-ref-guide/src/math-expressions.adoc +++ b/solr/solr-ref-guide/src/math-expressions.adoc @@ -1,5 +1,5 @@ = Math Expressions -:page-children: scalar-math, vector-math, variables, matrix-math, vectorization, term-vectors, statistics, probability, montecarlo, time-series, regression, numerical-analysis, curve-fitting, machine-learning +:page-children: scalar-math, vector-math, variables, matrix-math, vectorization, term-vectors, statistics, probability-distributions, simulations, time-series, regression, numerical-analysis, curve-fitting, machine-learning // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file @@ -30,30 +30,30 @@ and data structures and techniques for combining Solr's powerful streams with mathematical functions to make every record in your Solr Cloud cluster computable. -== link:scalar-math.adoc[Scalar Math] +== link:scalar-math.adoc#scalar-math[Scalar Math] -== link:vector-math.adoc[Vector Math] +== link:vector-math.adoc#vector-math[Vector Math] -== link:variables.adoc[Variables] +== link:variables.adoc#variables.adoc[Variables] -== link:matrix-math.adoc[Matrix Math] +== link:matrix-math.adoc#matrix-math[Matrix Math] -== link:vectorization.adoc[Streams and Vectorization] +== link:vectorization.adoc#vectorization[Streams and Vectorization] -== link:term-vectors.adoc[Text Analysis and Term Vectors] +== link:term-vectors.adoc#term-vectors[Text Analysis and Term Vectors] -== link:statistics.adoc[Statistics] +== link:statistics.adoc#statistics[Statistics] -== link:probability.adoc[Probability] +== link:probability-distributions.adoc#probability-distributions[Probability] -== link:montecarlo.adoc[Monte Carlo Simulations] +== link:simulations.adoc#simulations[Monte Carlo Simulations] -== link:time-series.adoc[Time Series] +== link:time-series.adoc#time-series[Time Series] -== link:regression.adoc[Linear Regression] +== link:regression.adoc#regression[Linear Regression] -== link:numerical-analysis.adoc[Interpolation, Derivatives and Integrals] +== link:numerical-analysis.adoc#numerical-analysis[Interpolation, Derivatives and Integrals] -== link:curve-fitting.adoc[Curve Fitting] +== link:curve-fitting.adoc#curve-fitting[Curve Fitting] -== link:machine-learning.adoc[Machine Learning] +== link:machine-learning.adoc#machine-learning[Machine Learning] diff --git a/solr/solr-ref-guide/src/parallel-sql-interface.adoc b/solr/solr-ref-guide/src/parallel-sql-interface.adoc index a6875b6b863..9fb3d163cd3 100644 --- a/solr/solr-ref-guide/src/parallel-sql-interface.adoc +++ b/solr/solr-ref-guide/src/parallel-sql-interface.adoc @@ -280,7 +280,7 @@ The `aggregationMode` parameter is available in the both the JDBC driver and HTT SELECT distinct fieldA as fa, fieldB as fb FROM tableA ORDER BY fa desc, fb desc ---- -=== Statistics +=== Statistical Functions The SQL interface supports simple statistics calculated on numeric fields. The supported functions are `count(*)`, `min`, `max`, `sum`, and `avg`. diff --git a/solr/solr-ref-guide/src/probability.adoc b/solr/solr-ref-guide/src/probability-distributions.adoc similarity index 99% rename from solr/solr-ref-guide/src/probability.adoc rename to solr/solr-ref-guide/src/probability-distributions.adoc index 9c46d087f21..5ae224816d3 100644 --- a/solr/solr-ref-guide/src/probability.adoc +++ b/solr/solr-ref-guide/src/probability-distributions.adoc @@ -20,7 +20,7 @@ This section of the user guide covers the *probability distribution framework* included in the math expressions library. -== Probability Distributions +== Probability Distribution Framework The probability distribution framework includes many commonly used *real* and *discrete* probability @@ -161,7 +161,7 @@ When this expression is sent to the /stream handler it responds with: } ---- -=== Probability +=== Discrete Probability The `probability` function can be used with any discrete distribution function to compute the probability of a diff --git a/solr/solr-ref-guide/src/montecarlo.adoc b/solr/solr-ref-guide/src/simulations.adoc similarity index 100% rename from solr/solr-ref-guide/src/montecarlo.adoc rename to solr/solr-ref-guide/src/simulations.adoc diff --git a/solr/solr-ref-guide/src/statistical-programming.adoc b/solr/solr-ref-guide/src/statistical-programming.adoc index 08693b275cb..25715c93b7a 100644 --- a/solr/solr-ref-guide/src/statistical-programming.adoc +++ b/solr/solr-ref-guide/src/statistical-programming.adoc @@ -161,7 +161,7 @@ Returns the following response: Several types of data can be manipulated with the statistical programming syntax. The following sections explore <>, <>, and <>. -=== Arrays +=== Creating Arrays The first data structure we'll explore is the array. diff --git a/solr/solr-ref-guide/src/term-vectors.adoc b/solr/solr-ref-guide/src/term-vectors.adoc index cbd21a06db8..32c4bfa3a2c 100644 --- a/solr/solr-ref-guide/src/term-vectors.adoc +++ b/solr/solr-ref-guide/src/term-vectors.adoc @@ -109,7 +109,7 @@ responds with: } ---- -== Term Vectors +== TF-IDF Term Vectors The `termVectors` function can be used to build *TF-IDF* term vectors from the terms generated by the `analyze` function.