You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/search/search-query-language/search-operators/macro.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,10 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
7
7
8
8
The `macro` operator allows you to reuse portions of a search query across multiple queries. Additionally, this operator includes arguments and performs its respective evaluation of the arguments.
9
9
10
-
Use backquote (``) character to refer macro operator in the query. Macros referred inside another macro is called **Nested macros**. Macro referred within the context of another macro query of is called **Inner Macro**. The macro where the inner macro is referred is called the **Outer Macro**.
10
+
To use `macro` the operator, reference it in your query with backticks (``). Macros can also be nested, enabling complex query reuse:
11
+
***Nested Macros**. A macro referenced inside another macro.
12
+
***Inner Macro**. A macro used within the context of another macro query.
13
+
***Outer Macro**. The macro that references an inner macro.
11
14
12
15
:::note
13
16
- Only **Administrators** and **Users** with access to **Query Reference** will be able to run queries using macros.
0 commit comments