Skip to content

Commit 5bb014d

Browse files
committed
docs(data-modeling): say what the engine does with a search override naming no searchable field
The full-text search callout said direct `engine.find()` callers were unaffected by the override refusals; they now get both. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cyi29iG8J3UUXr68AZ
1 parent dedf2e8 commit 5bb014d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎content/docs/data-modeling/queries.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,9 @@ override that names no field at all (`?$searchFields=`, `?$searchFields=,`, an e
545545
array) is `400 VALIDATION_ERROR`, as `$select=` is; leave the parameter out to scan the
546546
default set. The engine used to drop unknown names and fall back to the full searchable
547547
set — a parameter that exists to narrow a search, silently widening it. Internal callers
548-
reaching `engine.find()` directly are unaffected.
548+
reaching `engine.find()` directly get the same two refusals for an override naming no field
549+
(`400 VALIDATION_ERROR`) and one naming none of the searchable fields (`400 INVALID_FIELD`);
550+
an override naming at least one searchable field there still has its other names dropped.
549551
</Callout>
550552

551553
### Searching by a related record's title — mirror the value

0 commit comments

Comments
 (0)