You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2018/05/30 10:58:05 UTC

lucene-solr:branch_7x: SOLR-12401: Add refGuide docs and CHANGES

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x bd2218af4 -> aed4f276d


SOLR-12401: Add refGuide docs and CHANGES

(cherry picked from commit 6ca0c5f)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/aed4f276
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/aed4f276
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/aed4f276

Branch: refs/heads/branch_7x
Commit: aed4f276d56462c7f6af468c8f06e3517c6ca82a
Parents: bd2218a
Author: Jan Høydahl <ja...@apache.org>
Authored: Wed May 30 12:51:00 2018 +0200
Committer: Jan Høydahl <ja...@apache.org>
Committed: Wed May 30 12:57:51 2018 +0200

----------------------------------------------------------------------
 solr/CHANGES.txt                                |  2 ++
 .../src/stream-evaluator-reference.adoc         | 35 ++++++++++++++++++++
 2 files changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/aed4f276/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 0146519..81fa355 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -96,6 +96,8 @@ New Features
 * SOLR-11453: Configuring slowQueryThresholdMillis logs slow requests to a separate file - solr_slow_requests.log .
   (Shawn Heisey, Remko Popma, Varun Thacker)
 
+* SOLR-12401: Add getValue() and setValue() Stream Evaluators (Joel Bernstein, janhoy) 
+
 Bug Fixes
 ----------------------
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/aed4f276/solr/solr-ref-guide/src/stream-evaluator-reference.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/stream-evaluator-reference.adoc b/solr/solr-ref-guide/src/stream-evaluator-reference.adoc
index 7b336fe..67109de 100644
--- a/solr/solr-ref-guide/src/stream-evaluator-reference.adoc
+++ b/solr/solr-ref-guide/src/stream-evaluator-reference.adoc
@@ -1018,6 +1018,23 @@ getRowLabels(matrix)
 
 string array : The labels for each row in the matrix
 
+== getValue
+
+The `getValue` function returns the value of a single Tuple entry by key.
+
+=== getValue Parameters
+
+* `tuple`: The Tuple to return the entry from.
+* `key`: The key of the entry to return the value for.
+
+=== getValue Syntax
+
+getValue(tuple, key)
+
+=== getValue Returns
+
+object: Returns an object of the same type as the Tuple entry.
+
 == grandSum
 
 The `grandSum` function sums all the values in a matrix.
@@ -2063,6 +2080,24 @@ setRowLabels(matrix, labels)
 
 matrix : The matrix with the labels set.
 
+== setValue
+
+The `setValue` function sets a new value for a Tuple entry.
+
+=== setValue Parameters
+
+* `tuple`: The Tuple to return the entry from.
+* `key`: The key of the entry to set.
+* `value`: The value to set.
+
+=== setValue Syntax
+
+setValue(tuple, key, value)
+
+=== setValue Returns
+
+tuple: Returns the new modified tuple
+
 == sin
 
 The `sin` function returns the trigonometric sine of a number.