feed: correct the case sensitivity example in the full table search post #14

Merged
allan merged 2 commits from fix/full-table-search-case-sensitivity into main 2026-09-17 07:47:31 +00:00
Collaborator

What

The text search bullet claimed smith finds Smithson and Goldsmith, while the same sentence said the comparison is case sensitive. Both cannot be true.

Why it is wrong

%mp_searchdata builds ("COL"n ? "value") per character column - the SAS CONTAINS operator, which the SAS language reference documents as case sensitive - and the Viewer's viewdata service passes the search value straight through, so nothing normalises case.

Checked against the mocked backend, on one table that holds both cases:

  • Selkie returns 280 rows, selkie returns 0
  • squid returns 100 rows, Squid returns 0

Change

The bullet now reads: Smith finds Smithson and smith finds Goldsmith, but smith will not find Smithson.

The same wrong example is corrected on the Viewer documentation page (dc/docs.datacontroller.io PR #5), so the two stay consistent.

## What The text search bullet claimed `smith` finds `Smithson` and `Goldsmith`, while the same sentence said the comparison is case sensitive. Both cannot be true. ## Why it is wrong `%mp_searchdata` builds `("COL"n ? "value")` per character column - the SAS `CONTAINS` operator, which the SAS language reference documents as case sensitive - and the Viewer's `viewdata` service passes the search value straight through, so nothing normalises case. Checked against the mocked backend, on one table that holds both cases: - `Selkie` returns 280 rows, `selkie` returns 0 - `squid` returns 100 rows, `Squid` returns 0 ## Change The bullet now reads: `Smith` finds `Smithson` and `smith` finds `Goldsmith`, but `smith` will not find `Smithson`. The same wrong example is corrected on the Viewer documentation page (dc/docs.datacontroller.io PR #5), so the two stay consistent.
hermes added 1 commit 2026-09-16 23:43:00 +00:00
The post claimed `smith` finds `Smithson`, which only holds for a case
insensitive match. The comparison is case sensitive, so the search term has
to match the case as stored: `Smith` finds `Smithson`, and `smith` finds
`Goldsmith`, but `smith` will not find `Smithson`.
hermes added 1 commit 2026-09-17 07:44:54 +00:00
allan approved these changes 2026-09-17 07:47:26 +00:00
allan merged commit 6bcd0adf81 into main 2026-09-17 07:47:31 +00:00
allan deleted branch fix/full-table-search-case-sensitivity 2026-09-17 07:47:31 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/datacontroller.io#14