mirror of https://github.com/apache/lucene.git
SOLR-10651: fix docs ...
This commit is contained in:
parent
6c256749f9
commit
3e2d72bf7b
|
@ -695,76 +695,3 @@ The `list` function emits each `tuple` and the `top` function returns only the t
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[source,text]
|
||||
----
|
||||
let(tuples=list(sort(random(collection2, q="month_i:1", rows="1000", fl="response_d"), by="reponse_d asc"),
|
||||
sort(random(collection2, q="month_i:2", rows="1000", fl="response_d"), by="reponse_d asc"),
|
||||
sort(random(collection2, q="month_i:3", rows="1000", fl="response_d"), by="reponse_d asc"),
|
||||
sort(random(collection2, q="month_i:4", rows="1000", fl="response_d"), by="reponse_d asc"),
|
||||
sort(random(collection2, q="month_i:5", rows="1000", fl="response_d"), by="reponse_d asc")),
|
||||
allSamples=col(tuples, response_d),
|
||||
rankedSamples=rank(allSamples),
|
||||
sample1=copyOfRange(rankedSamples, 0, 1000),
|
||||
sample2=copyOfRange(rankedSamples, 1000, 2000),
|
||||
sample3=copyOfRange(rankedSamples, 2000, 3000),
|
||||
sample4=copyOfRange(rankedSamples, 3000, 4000),
|
||||
sample5=copyOfRange(rankedSamples, 4000, 5000),
|
||||
top(n=1, sort="distance asc",
|
||||
list(tuple(sample=2, distance=distance(sample1, sample2)),
|
||||
tuple(sample=3, distance=distance(sample1, sample3)),
|
||||
tuple(sample=4, distance=distance(sample1, sample4)),
|
||||
tuple(sample=5, distance=distance(sample1, sample5)))))
|
||||
----
|
||||
|
||||
[source,text]
|
||||
----
|
||||
|
||||
----
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue