Skip to content

Commit

Permalink
Update usage example doc for PPL cross-cluster search (opensearch-pro…
Browse files Browse the repository at this point in the history
…ject#1610)

Signed-off-by: Sean Kao <seankao@amazon.com>
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
  • Loading branch information
seankao-az authored and MitchellGale committed Jun 12, 2023
1 parent 7eb6676 commit b432756
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docs/user/ppl/admin/cross_cluster_search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@ Using Cross-Cluster Search in PPL
=================================
Perform cross-cluster search by using "<cluster-name>:<index-name>" 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
Expand Down

0 comments on commit b432756

Please sign in to comment.