@byline/db-postgres 3.14.0 → 3.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1233,7 +1233,13 @@ export class DocumentQueries {
|
|
|
1233
1233
|
// Text search across configured search fields via EXISTS on store_text.
|
|
1234
1234
|
if (query) {
|
|
1235
1235
|
const definition = await this.getDefinitionForCollection(collection_id);
|
|
1236
|
-
|
|
1236
|
+
// The admin list-view box matches store_text rows by field name. Derive
|
|
1237
|
+
// the names from the role-based `search.body` declaration (a field path
|
|
1238
|
+
// or `{ field, boost }`); fall back to the identity-ish `title`.
|
|
1239
|
+
const bodyDecls = definition.search?.body ?? [];
|
|
1240
|
+
const searchFields = bodyDecls.length > 0
|
|
1241
|
+
? bodyDecls.map((decl) => (typeof decl === 'string' ? decl : decl.field))
|
|
1242
|
+
: ['title'];
|
|
1237
1243
|
const searchConditions = searchFields.map((fieldName) => sql `(field_name = ${fieldName} AND value ILIKE ${`%${query}%`})`);
|
|
1238
1244
|
conditions.push(sql `EXISTS (
|
|
1239
1245
|
SELECT 1 FROM byline_store_text
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@byline/db-postgres",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.15.1",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.9.0"
|
|
8
8
|
},
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"pg": "^8.21.0",
|
|
58
58
|
"uuid": "^14.0.0",
|
|
59
59
|
"zod": "^4.4.3",
|
|
60
|
-
"@byline/admin": "3.
|
|
61
|
-
"@byline/
|
|
62
|
-
"@byline/
|
|
60
|
+
"@byline/admin": "3.15.1",
|
|
61
|
+
"@byline/core": "3.15.1",
|
|
62
|
+
"@byline/auth": "3.15.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@biomejs/biome": "2.4.15",
|