@byline/search-mysql 4.17.0 → 4.18.0

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.
@@ -24,6 +24,7 @@ const CAPABILITIES = {
24
24
  anyTerms: true,
25
25
  minimumShouldMatch: true,
26
26
  phrase: true,
27
+ fieldScope: false,
27
28
  },
28
29
  };
29
30
  /** MySQL FULLTEXT implementation over portable parser-safe logical tokens. */
@@ -105,6 +106,9 @@ export class MySqlSearchProvider {
105
106
  }
106
107
  }
107
108
  async search(query) {
109
+ if (query.fieldScope != null) {
110
+ throw new Error('@byline/search-mysql does not support field-scoped full-text queries');
111
+ }
108
112
  const plan = this.analyzer.analyzeQuery({
109
113
  query: query.query,
110
114
  locale: query.locale,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@byline/search-mysql",
3
3
  "private": false,
4
4
  "license": "MPL-2.0",
5
- "version": "4.17.0",
5
+ "version": "4.18.0",
6
6
  "engines": {
7
7
  "node": ">=20.9.0"
8
8
  },
@@ -41,8 +41,8 @@
41
41
  "migrations"
42
42
  ],
43
43
  "dependencies": {
44
- "@byline/core": "4.17.0",
45
- "@byline/search-analysis": "4.17.0"
44
+ "@byline/core": "4.18.0",
45
+ "@byline/search-analysis": "4.18.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "mysql2": "^3.23.1"