lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbern...@apache.org
Subject [31/41] lucene-solr:branch_6x: SOLR-10426: Add documentation
Date Mon, 05 Jun 2017 18:36:45 GMT
SOLR-10426: Add documentation


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

Branch: refs/heads/branch_6x
Commit: 328dc4ccb15c12e94377610404c8f7bc4f062cd6
Parents: 11dd302
Author: Joel Bernstein <jbernste@apache.org>
Authored: Thu Jun 1 15:35:10 2017 -0400
Committer: Joel Bernstein <jbernste@apache.org>
Committed: Mon Jun 5 13:53:49 2017 -0400

----------------------------------------------------------------------
 solr/solr-ref-guide/src/stream-sources.adoc | 25 +++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/328dc4cc/solr/solr-ref-guide/src/stream-sources.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/stream-sources.adoc b/solr/solr-ref-guide/src/stream-sources.adoc
index 7d3a2e2..ad91eb3 100644
--- a/solr/solr-ref-guide/src/stream-sources.adoc
+++ b/solr/solr-ref-guide/src/stream-sources.adoc
@@ -327,7 +327,30 @@ The expression above performs a breadth-first search to find the shortest
paths
 The search starts from the nodeID "\john@company.com" in the `from_address` field and searches
for the nodeID "\jane@company.com" in the `to_address` field. This search is performed iteratively
until the `maxDepth` has been reached. Each level in the traversal is implemented as a parallel
partitioned nested loop join across the entire collection. The `threads` parameter controls
the number of threads performing the join at each level, while the `partitionSize` parameter
controls the of number of nodes in each join partition. The `maxDepth` parameter controls
the number of levels to traverse. `fq` is a limiting query applied to each level in the traversal.
 
 == shuffle
-//TODO
+
+The `shuffle` expression sorts and exports entire result sets. The `shuffle` expression is
similar to the `search` expression except that
+under the covers `shuffle` always uses the /export handler. The `shuffle` expression is designed
to be combined with the relational algebra
+decorators that require complete, sorted result sets. Shuffled result sets can be partitioned
across worker nodes with the parallel
+stream decorator to perform parallel relational algebra. When used in parallel mode the partitionKeys
parameter must be provided.
+
+=== shuffle Parameters
+
+* `collection`: (Mandatory) the collection being searched.
+* `q`: (Mandatory) The query to perform on the Solr index.
+* `fl`: (Mandatory) The list of fields to return.
+* `sort`: (Mandatory) The sort criteria.
+* `zkHost`: Only needs to be defined if the collection being searched is found in a different
zkHost than the local stream handler.
+* `partitionKeys`: Comma delimited list of keys to partition the search results by. To be
used with the parallel function for parallelizing operations across worker nodes. See the
<<stream-decorators.adoc#parallel,parallel>> function for details.
+
+=== shuffle Syntax
+
+[source,text]
+----
+shuffle(collection1,
+        q="*:*",
+        fl="id,a_s,a_i,a_f",
+        sort="a_f asc, a_i asc")
+----
 
 == stats
 


Mime
View raw message