lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject [28/38] lucene-solr:jira/solr-8668: SOLR-10426: Add documentation
Date Fri, 02 Jun 2017 10:56:51 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/40153975
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/40153975
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/40153975

Branch: refs/heads/jira/solr-8668
Commit: 401539758b34279d98c9d25d844ed9435925e938
Parents: 0e7207b
Author: Joel Bernstein <jbernste@apache.org>
Authored: Thu Jun 1 15:35:10 2017 -0400
Committer: Joel Bernstein <jbernste@apache.org>
Committed: Thu Jun 1 15:35:29 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/40153975/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