Apache Lucene open-source search software
SOLR-10651: fix docs ...
Joel Bernsteinff3d0dd70b35
diff --git a/solr/solr-ref-guide/src/statistical-programming.adoc b/solr/solr-ref-guide/src/statistical-programming.adocindex c42e3225c02..77028bc5e06 100644--- a/solr/solr-ref-guide/src/statistical-programming.adoc+++ b/solr/solr-ref-guide/src/statistical-programming.adoc@@ -370,7 +370,7 @@ Returns the following response:-----== Tuple+== TuplesThe *tuple* is the next data structure we'll explore.@@ -419,7 +419,7 @@ Returns the following response:}-----== List+== ListsNext we have the *list* data structure.@@ -467,7 +467,7 @@ Returns the following response:}-----== Let+== Variables with the `let` functionThe `let` function sets *variables* and runs a Streaming Expression that references the variables. The `let` funtion can be used towrite small statistical programs.@@ -529,7 +529,7 @@ Here is the output:}-----== Col+== Creating arrays with `col` functionThe `col` function is used to move a column of numbers from a list of tuples into an `array`.This is an important function because Streaming Expressions such as `sql`, `random` and `timeseries` return tuples,@@ -586,7 +586,7 @@ The response shows the arrays:}-----== Statistical Programming+== Statistical Programming ExampleWe've covered how the *data structures*, *variables* and a few *statistical functions* work.Let's dive into an example that puts these tools to use.@@ -623,7 +623,7 @@ The use case we're reasoning about can often be approached using a K Nearest NeiWith knn we use a *distance* measure to compare vectors of data to find the k nearest neighbors toa specific vector.-=== Distance+=== Euclidean DistanceThe Streaming Expression statistical function library has a function called `distance`. The `distance` functioncomputes the Euclidean distance between two vectors. This looks promising for comparing vectors of room rates.