Skip to content

Commit d3203fc

Browse files
authored
DOCSP-42077 Query History Autocomplete (#663)
* DOCSP-24077 Query History Autocomplete * * * * * typo * BB edits
1 parent 883995d commit d3203fc

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed
233 KB
Loading

source/query/recent.txt

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@ View Recent Queries
77

88
.. default-domain:: mongodb
99

10-
You can view up to 20 of the most recent queries for that collection.
11-
Click a query in the list to populate the query bar with that query.
10+
.. contents:: On this page
11+
:local:
12+
:backlinks: none
13+
:depth: 1
14+
:class: singlecol
15+
16+
You can view up to 20 of the most recent queries for a collection in the
17+
recent queries menu. To open the recent queries menu, click the :icon-lg:`Clock`
18+
icon in the query bar. Click a query in the list to populate the query bar with
19+
that query.
1220

1321
.. figure:: /images/compass/query-history-select.png
1422
:figwidth: 500px
@@ -33,6 +41,26 @@ You can also hover over a query and perform the following actions:
3341
* - :icon-fa5:`trash-alt`
3442
- Remove the query from the :guilabel:`Recent` list.
3543

44+
45+
Query Autocomplete Menu
46+
-----------------------
47+
48+
If the query bar is empty, you can click the filter bar to open the
49+
query autocomplete menu and view up to 50 of your most recent queries. To scroll
50+
through your most recent queries, you can use the :kbd:`↑` and :kbd:`↓` arrow
51+
keys. If a query is highlighted on the menu, it displays a pop-up panel that
52+
shows the filter, project, and sort stages of the query. To select a query from
53+
the autocomplete menu, press :kbd:`Enter`, press :kbd:`Tab`, or click the query.
54+
55+
If you start typing into the filter bar, the autocomplete menu filters results
56+
to only display recent queries that include the specified string. If you start
57+
typing into the other option fields, such as :guilabel:`Project` or
58+
:guilabel:`Sort`, the autocomplete menu only displays recent queries that
59+
include those fields.
60+
61+
.. figure:: /images/compass/query-autocomplete.png
62+
:alt: Compass query autocomplete menu
63+
3664
.. seealso::
3765

3866
To learn how to write queries to filter your data, see

0 commit comments

Comments
 (0)