Apache Solr open-source search software
solr-ref-guide: expand 'eval' streaming expression example; fix a few typos; (#817)
Christine Poerschkede2d9597ddf0
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc b/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adocindex 7ab160fc871..63c3221c20d 100644--- a/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc+++ b/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc@@ -201,14 +201,14 @@ Number of buckets beyond the `limit` to internally request from shards during aLarger values can increase the accuracy of the final "Top Terms" returned when the individual shards have very diff top terms.-The default of `-1` causes a hueristic to be applied based on the other options specified.+The default of `-1` causes a heuristic to be applied based on the other options specified.|`refine` |If `true`, turns on distributed facet refining. This uses a second phase to retrieve any buckets needed for the final result from shards that did not include those buckets in their initial internal results, so that every shard contributes to every returned bucket in this facet and any sub-facets. This makes counts & stats for returned buckets exact.|`overrefine` a|Number of buckets beyond the `limit` to consider internally during a distributed search when determining which buckets to refine.Larger values can increase the accuracy of the final "Top Terms" returned when the individual shards have very diff top terms, and the current `sort` option can result in refinement pushing terms lower down the sorted list (ex: `sort:"count asc"`)-The default of `-1` causes a hueristic to be applied based on other options specified.+The default of `-1` causes a heuristic to be applied based on other options specified.|`mincount` |Only return buckets with a count of at least this number. Defaults to `1`.|`missing` |A boolean that specifies if a special “missing” bucket should be returned that is defined by documents without a value in the field. Defaults to `false`.|`numBuckets` |A boolean. If `true`, adds “numBuckets” to the response, an integer representing the number of buckets for the facet (as opposed to the number of buckets returned). Defaults to `false`.diff --git a/solr/solr-ref-guide/modules/query-guide/pages/stream-decorator-reference.adoc b/solr/solr-ref-guide/modules/query-guide/pages/stream-decorator-reference.adocindex 7774a355bac..5f5e590d38a 100644--- a/solr/solr-ref-guide/modules/query-guide/pages/stream-decorator-reference.adoc+++ b/solr/solr-ref-guide/modules/query-guide/pages/stream-decorator-reference.adoc@@ -645,7 +645,7 @@ This is similar to the `<<update,update()>>` function described below.[source,text]----- delete(collection1+ delete(collection1,batchSize=500,search(collection1,q=old_data:true,@@ -690,6 +690,35 @@ In the example above the `eval` expression reads the first tuple from the underlIt then compiles andexecutes the string streaming expression in the `expr_s` field.+Example:++[source,text]+----+eval(select(+ echo("tuple(answer=42)"),+ echo as expr_s+))+----++Output:++[source,json]+----+{+ "result-set": {+ "docs": [+ {+ "answer": "42"+ },+ {+ "EOF": true,+ "RESPONSE_TIME": 0+ }+ ]+ }+}+----+== executorThe `executor` function wraps a stream source that contains streaming expressions, and executes the expressions in parallel.diff --git a/solr/solr-ref-guide/modules/query-guide/pages/stream-evaluator-reference.adoc b/solr/solr-ref-guide/modules/query-guide/pages/stream-evaluator-reference.adocindex c6bb3f9a4a6..ff4ef07db7b 100644--- a/solr/solr-ref-guide/modules/query-guide/pages/stream-evaluator-reference.adoc+++ b/solr/solr-ref-guide/modules/query-guide/pages/stream-evaluator-reference.adoc@@ -1238,7 +1238,9 @@ The `length` function returns the length of a numeric array.[source,text]length(numericArray)-== lerp (TOD0)+== lerp++// TODO== loess