Skip to content

Commit e85d2a4

Browse files
committed
chore(spec): regenerate artifacts for EngineCountOptions search pair
Claude-Session: https://claude.ai/code/session_01JfJfBUC3cQ6hhgm9MQK76T Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7427192 commit e85d2a4

4 files changed

Lines changed: 25 additions & 2 deletions

File tree

‎content/docs/references/data/data-engine.mdx‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,16 @@ Options for DataEngine.count operations
221221
| :--- | :--- | :--- | :--- |
222222
| **method** | `'count'` | ✅ | |
223223
| **object** | `string` | ✅ | |
224-
| **query** | `{ context?: object; where?: Record<string, any> \| any; filter?: Record<string, any> \| any }` | optional | |
224+
| **query** | `{ context?: object; where?: Record<string, any> \| any; search?: string \| object; searchFields?: string[]; … }` | optional | |
225225

226226
### Nested Shape: `DataEngineCountRequest.query`
227227

228228
| Property | Type | Required | Description |
229229
| :--- | :--- | :--- | :--- |
230230
| **context** | `{ userId?: string; actor?: string; attributedUserId?: string; email?: string; … }` | optional | |
231231
| **where** | `Record<string, any> \| any` | optional | |
232+
| **search** | `string \| { query: string; fields?: string[]; fuzzy?: boolean; operator?: Enum<'and' \| 'or'>; … }` | optional | |
233+
| **searchFields** | `string[]` | optional | |
232234
| **filter** | `Record<string, any> \| any` | optional | Data Engine query filter conditions |
233235

234236

@@ -684,14 +686,16 @@ This schema accepts one of the following structures:
684686
| :--- | :--- | :--- | :--- |
685687
| **method** | `'count'` | ✅ | |
686688
| **object** | `string` | ✅ | |
687-
| **query** | `{ context?: object; where?: Record<string, any> \| any; filter?: Record<string, any> \| any }` | optional | |
689+
| **query** | `{ context?: object; where?: Record<string, any> \| any; search?: string \| object; searchFields?: string[]; … }` | optional | |
688690

689691
### Nested Shape: `DataEngineRequest[method='count'].query`
690692

691693
| Property | Type | Required | Description |
692694
| :--- | :--- | :--- | :--- |
693695
| **context** | `{ userId?: string; actor?: string; attributedUserId?: string; email?: string; … }` | optional | |
694696
| **where** | `Record<string, any> \| any` | optional | |
697+
| **search** | `string \| { query: string; fields?: string[]; fuzzy?: boolean; operator?: Enum<'and' \| 'or'>; … }` | optional | |
698+
| **searchFields** | `string[]` | optional | |
695699
| **filter** | `Record<string, any> \| any` | optional | Data Engine query filter conditions |
696700

697701
---
@@ -994,6 +998,8 @@ QueryAST-aligned options for DataEngine.count operations
994998
| :--- | :--- | :--- | :--- |
995999
| **context** | `{ userId?: string; actor?: string; attributedUserId?: string; email?: string; … }` | optional | |
9961000
| **where** | `Record<string, any> \| any` | optional | |
1001+
| **search** | `string \| { query: string; fields?: string[]; fuzzy?: boolean; operator?: Enum<'and' \| 'or'>; … }` | optional | |
1002+
| **searchFields** | `string[]` | optional | |
9971003

9981004
### Nested Shape: `EngineCountOptions.context`
9991005

@@ -1033,6 +1039,19 @@ QueryAST-aligned options for DataEngine.count operations
10331039
| **transaction** | `any` | optional | |
10341040
| **traceId** | `string` | optional | |
10351041

1042+
### Nested Shape: `EngineCountOptions.search`
1043+
1044+
| Property | Type | Required | Description |
1045+
| :--- | :--- | :--- | :--- |
1046+
| **query** | `string` | ✅ | Search query text |
1047+
| **fields** | `string[]` | optional | Fields to search in (if not specified, searches all text fields) |
1048+
| **fuzzy** | `boolean` | optional (default: `false`) | [EXPERIMENTAL — not enforced] Fuzzy matching (tolerate typos). The ADR-0061 expansion reads only `query` + `fields`; no executor receives this flag. |
1049+
| **operator** | `Enum<'and' \| 'or'>` | optional (default: `"or"`) | [EXPERIMENTAL — not enforced] Logical operator between terms. The ADR-0061 expansion applies its own term semantics; no executor receives this flag. |
1050+
| **boost** | `Record<string, number>` | optional | [EXPERIMENTAL — not enforced] Field-specific relevance boosting (field name -> boost factor). No executor scores results. |
1051+
| **minScore** | `number` | optional | [EXPERIMENTAL — not enforced] Minimum relevance score threshold. No executor scores results. |
1052+
| **language** | `string` | optional | [EXPERIMENTAL — not enforced] Language for text analysis (e.g., "en", "zh", "es"). No executor selects an analyzer. |
1053+
| **highlight** | `boolean` | optional (default: `false`) | [EXPERIMENTAL — not enforced] Search result highlighting. No executor emits highlights. |
1054+
10361055

10371056
---
10381057

‎packages/spec/api-surface/data.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@
255255
"EngineAggregateOptionsParsed (type)",
256256
"EngineAggregateOptionsSchema (const)",
257257
"EngineCountOptions (type)",
258+
"EngineCountOptionsParsed (type)",
258259
"EngineCountOptionsSchema (const)",
259260
"EngineDeleteOptions (type)",
260261
"EngineDeleteOptionsSchema (const)",

‎packages/spec/authorable-surface/data.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@
268268
"data/EngineAggregateOptions:timezone",
269269
"data/EngineAggregateOptions:where",
270270
"data/EngineCountOptions:context",
271+
"data/EngineCountOptions:search",
272+
"data/EngineCountOptions:searchFields",
271273
"data/EngineCountOptions:where",
272274
"data/EngineDeleteOptions:context",
273275
"data/EngineDeleteOptions:multi",

‎packages/spec/export-origins/data.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@
250250
"EngineAggregateOptionsParsed": "src/data/data-engine.zod.ts#EngineAggregateOptionsParsed (type)",
251251
"EngineAggregateOptionsSchema": "src/data/data-engine.zod.ts#EngineAggregateOptionsSchema (const)",
252252
"EngineCountOptions": "src/data/data-engine.zod.ts#EngineCountOptions (type)",
253+
"EngineCountOptionsParsed": "src/data/data-engine.zod.ts#EngineCountOptionsParsed (type)",
253254
"EngineCountOptionsSchema": "src/data/data-engine.zod.ts#EngineCountOptionsSchema (const)",
254255
"EngineDeleteOptions": "src/data/data-engine.zod.ts#EngineDeleteOptions (type)",
255256
"EngineDeleteOptionsSchema": "src/data/data-engine.zod.ts#EngineDeleteOptionsSchema (const)",

0 commit comments

Comments
 (0)