From 85f200c7244fa58c6eb2b3c3c630e02db6887239 Mon Sep 17 00:00:00 2001 From: dc Date: Wed, 16 Sep 2026 23:42:37 +0000 Subject: [PATCH] docs(viewer): correct the character search example to match the code The example claimed `smith` finds `Smithson`, which only holds for a case insensitive match. The search is a case sensitive CONTAINS match - DC passes the search value straight to %mp_searchdata, which uses the SAS `?` operator - so `smith` finds `Goldsmith` (a lowercase substring) and not `Smithson`. --- docs/dcu-tableviewer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dcu-tableviewer.md b/docs/dcu-tableviewer.md index 12be3dd..155027c 100644 --- a/docs/dcu-tableviewer.md +++ b/docs/dcu-tableviewer.md @@ -18,7 +18,7 @@ A single search box can be used to make a full table search on any character or The search covers **every** column of the table at once, so you do not need to know which column holds the value you are looking for: -- **Character search** (the default) is a case sensitive CONTAINS match against every character column, so `smith` finds `Smithson` and `Goldsmith`, but not `Smith`. +- **Character search** (the default) is a case sensitive CONTAINS match against every character column, so `Smith` finds `Smithson` and `smith` finds `Goldsmith`, but `smith` will not find `Smithson`. - **Numeric search** (tick the Numeric box) is an exact match against every numeric column, so `42` will not find `420` or `4210`. - If a filter is applied, the search runs within the filtered rows rather than the whole table. - The result set is capped by the [`DC_MAXOBS_WEBVIEW`](/dcc-options/#dc_maxobs_webview) option (500 rows by default). The row count shown next to the table name is the number of rows the search matched, which can be higher than the number of rows displayed.