Skip to content

Commit

Permalink
add search limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Downs authored and Taylor Downs committed Feb 23, 2025
1 parent 48a22aa commit ceecd2f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/monitor-history/activity-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ search is applied. This method of searching allows you to find work orders
quickly and allows for partial string matches across all text in the run logs
and across the "keys" and "values" of your dataclips.

:::caution Very large/complex input dataclips may not be indexed

It's not currently possible to create `ts_vector` indexes larger than 1MB, and
as a result very large or complex input dataclips may not appear in search
results. This typically won't happen until you're nearing 10MB of JSON, but the
number of distinct lexemes & positions in your JSON will impact the final index
size.

More at the Postgres
["text search limitations" docs page](https://www.postgresql.org/docs/current/textsearch-limitations.html).

:::

Partial string matching works best at the start of words, so if you're looking
for items matching `"newPatient"` it's better to search for `"newPat"` than for
`"tient"`. (When in doubt, whole words or IDs produce the best results.)
Expand Down

0 comments on commit ceecd2f

Please sign in to comment.