You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/08/19 12:31:39 UTC
[28/37] lucene-solr:feature/autoscaling_72: SOLR-10651: fix docs
SOLR-10651: fix docs
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e1e557f1
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e1e557f1
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e1e557f1
Branch: refs/heads/feature/autoscaling_72
Commit: e1e557f187b2ed84e0a28d32800c651c089f8584
Parents: b7b7f4d
Author: Joel Bernstein <jb...@apache.org>
Authored: Thu Aug 17 16:14:37 2017 -0400
Committer: Joel Bernstein <jb...@apache.org>
Committed: Thu Aug 17 16:14:37 2017 -0400
----------------------------------------------------------------------
solr/solr-ref-guide/src/statistical-programming.adoc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e1e557f1/solr/solr-ref-guide/src/statistical-programming.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/statistical-programming.adoc b/solr/solr-ref-guide/src/statistical-programming.adoc
index 2bc7911..a0ebc55 100644
--- a/solr/solr-ref-guide/src/statistical-programming.adoc
+++ b/solr/solr-ref-guide/src/statistical-programming.adoc
@@ -645,6 +645,8 @@ comparing room rates from lowest to highest in both markets.
=== The code
+[source,text]
+----
let(cityA=sort(random(bookings, q="city:cityA", rows="1000", fl="rate_d"), by="rate_d asc"),
cityB=sort(random(bookings, q="city:cityB", rows="1000", fl="rate_d"), by="rate_d asc"),
cityC=sort(random(bookings, q="city:cityC", rows="1000", fl="rate_d"), by="rate_d asc"),
@@ -661,7 +663,7 @@ let(cityA=sort(random(bookings, q="city:cityA", rows="1000", fl="rate_d"), by="r
tuple(city=C, distance=distance(rateA, rateC)),
tuple(city=D, distance=distance(rateA, rateD)),
tuple(city=E, distance=distance(rateA, rateD)))))
-
+----
==== The code explained