From 76d271228dadd567977cb02e3356d1475dcc9c1e Mon Sep 17 00:00:00 2001 From: Sean Kao Date: Tue, 16 May 2023 08:46:18 -0700 Subject: [PATCH] Update usage example doc for PPL cross-cluster search (#1610) (#1629) Signed-off-by: Sean Kao (cherry picked from commit d0b6b3a738c3f87c6bf8b4f90dd482d13b5d6bcc) --- docs/user/ppl/admin/cross_cluster_search.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/user/ppl/admin/cross_cluster_search.rst b/docs/user/ppl/admin/cross_cluster_search.rst index 5a0370ebe0..f57ea288e8 100644 --- a/docs/user/ppl/admin/cross_cluster_search.rst +++ b/docs/user/ppl/admin/cross_cluster_search.rst @@ -36,9 +36,18 @@ Using Cross-Cluster Search in PPL ================================= Perform cross-cluster search by using ":" as the index identifier. -Example search command :: - - >> search source = my_remote_cluster:my_index +Example PPL query:: + + os> source=my_remote_cluster:accounts; + fetched rows / total rows = 4/4 + +------------------+-------------+----------------------+-----------+----------+--------+------------+---------+-------+-----------------------+------------+ + | account_number | firstname | address | balance | gender | city | employer | state | age | email | lastname | + |------------------+-------------+----------------------+-----------+----------+--------+------------+---------+-------+-----------------------+------------| + | 1 | Amber | 880 Holmes Lane | 39225 | M | Brogan | Pyrami | IL | 32 | amberduke@pyrami.com | Duke | + | 6 | Hattie | 671 Bristol Street | 5686 | M | Dante | Netagy | TN | 36 | hattiebond@netagy.com | Bond | + | 13 | Nanette | 789 Madison Street | 32838 | F | Nogal | Quility | VA | 28 | null | Bates | + | 18 | Dale | 467 Hutchinson Court | 4180 | M | Orick | null | MD | 33 | daleadams@boink.com | Adams | + +------------------+-------------+----------------------+-----------+----------+--------+------------+---------+-------+-----------------------+------------+ Limitation