Skip to content

Commit 63ca5a7

Browse files
authored
Make updates to search concepts section (#11248)
1 parent 2778f0d commit 63ca5a7

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

docs/concepts/search/index.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Search is available on several features throughout [sentry.io](https://sentry.io
88

99
## Query Syntax
1010

11+
<Note>
12+
You'll only need to use query syntax if you're using a Sentry [API](/api/). You'll get pre-populated suggestions once you start typing in your search terms when using the search bar anywhere in [Sentry.io](https://sentry.sentry.io/).
13+
</Note>
14+
1115
Search queries are constructed using a `key:value` pattern, with an optional raw search at the end. Each `key:value` pair is a `token` and the optional raw search is itself a single `token`. The `key:value` pair `tokens` are treated as issue or event properties. The optional raw search is treated as a single `token` and searches event titles/messages.
1216

1317
For example:

docs/concepts/search/searchable-properties/issues.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ sidebar_order: 10
1010

1111
Below is a list of keys and tokens that can be used in the issues search.
1212

13+
<Note>
14+
You'll only need to use query syntax for **datetime** and **relative time** searchable property types if you're using the Sentry [API](/api/).
15+
</Note>
16+
1317
<DefinitionList>
1418

1519
### `age`

docs/product/explore/traces/index.mdx

+2-9
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ All events have built-in key fields or custom tags, this includes our span data.
8080

8181
### Syntax
8282

83-
The Query Builder syntax is identical to [Sentry's Search syntax](/concepts/search/). After you enter a key field from above or a custom tag, you can use any of the referenced syntax. For example, `count()` gives you the number of times an event occurs. This can be written in the following ways:
83+
The Query Builder syntax is identical to [Sentry's Search syntax](/concepts/search/). After you enter a key field from above or a custom tag, you can use any of the referenced syntax. For example, `count()` gives you the number of times an event occurs.
8484

85-
- Exact match (is equal to): `span.duration:99`
86-
- Upper bounds (is less than or equal to): `span.duration:<99` or `span.duration:<=99`
87-
- Lower bounds (is more than or equal to): `span.duration:>99` or `span.duration:>=99`
88-
- Multiple bounds (is more and less than): `span.duration:>10 span.duration:<20`
89-
90-
Use `OR` and `AND` search conditions between filters. However `OR` cannot be used between aggregate and non-aggregate filters. For more details about these conditions, see [Using `OR` and `AND`](/concepts/search/#using-or-and-and).
91-
92-
You can also search multiple values for the same key by putting the values in a list. For example, "x:[value1, value2]" will find the same results as "x:value1 `OR` x:value2". You can learn more in our content covering [Multiple Values on the Same Key](/concepts/search/#multiple-values-on-the-same-key).
85+
Use `OR` and `AND` to search conditions between filters. However `OR` cannot be used between aggregate and non-aggregate filters. For more details about these conditions, see [Using `OR` and `AND`](/concepts/search/#using-or-and-and).

0 commit comments

Comments
 (0)