Skip to content

Commit f57e048

Browse files
committed
docs(objectql): query-syntax states the engine's refusal of a search override naming no field
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cyzHgmAWpXVdUctRKU
1 parent a94e330 commit f57e048

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎content/docs/protocol/objectql/query-syntax.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,9 @@ the tolerant intersection, but not a search with nothing to scan: when no
11941194
`searchableFields` entry names a stored field and the auto-default finds none
11951195
(`internal: true` fields never count), the engine itself refuses a non-blank `search`
11961196
with `400 INVALID_FIELD` (`param: 'search'`) on `find`, `findOne`, `count` and
1197-
`aggregate` alike, rather than answering every row. Multiple whitespace-separated terms are AND-ed and
1197+
`aggregate` alike, rather than answering every row. An override that names no field (`searchFields: []`,
1198+
`search.fields: []`, or a comma string with no name in it) is refused there too, `400 VALIDATION_ERROR`, as
1199+
at the ingress: leave the key out to search the default set. Multiple whitespace-separated terms are AND-ed and
11981200
fields are OR-ed. Case sensitivity comes from the operator the expansion emits, not
11991201
from the expansion: it emits `$icontains`, which ignores **ASCII case** by the
12001202
rule in [Case Sensitivity](#case-sensitivity) above. So a user typing `acme` does

0 commit comments

Comments
 (0)