vue-datocms 8.1.3 → 8.1.5
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.
- package/dist/index.cjs.js +3 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.mjs +3 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1492,7 +1492,8 @@ function useSiteSearch(config) {
|
|
|
1492
1492
|
filter: {
|
|
1493
1493
|
query: state.query,
|
|
1494
1494
|
locale: state.locale,
|
|
1495
|
-
build_trigger_id: config.buildTriggerId
|
|
1495
|
+
build_trigger_id: config.buildTriggerId,
|
|
1496
|
+
search_index_id: config.searchIndexId
|
|
1496
1497
|
},
|
|
1497
1498
|
page: {
|
|
1498
1499
|
limit: resultsPerPage,
|
|
@@ -1500,7 +1501,7 @@ function useSiteSearch(config) {
|
|
|
1500
1501
|
}
|
|
1501
1502
|
};
|
|
1502
1503
|
if (config.fuzzySearch) {
|
|
1503
|
-
request.fuzzy = "true";
|
|
1504
|
+
request.filter.fuzzy = "true";
|
|
1504
1505
|
}
|
|
1505
1506
|
const results = yield config.client.searchResults.rawList(request);
|
|
1506
1507
|
if (!isCancelled) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1239,6 +1239,7 @@ type SearchResultInstancesHrefSchema = {
|
|
|
1239
1239
|
fuzzy?: string | boolean;
|
|
1240
1240
|
query: string;
|
|
1241
1241
|
build_trigger_id?: string;
|
|
1242
|
+
search_index_id?: string;
|
|
1242
1243
|
locale?: string;
|
|
1243
1244
|
[k: string]: unknown;
|
|
1244
1245
|
};
|
|
@@ -1274,7 +1275,8 @@ declare class GenericClient {
|
|
|
1274
1275
|
}
|
|
1275
1276
|
type UseSiteSearchConfig<Client extends GenericClient> = {
|
|
1276
1277
|
client: Client;
|
|
1277
|
-
buildTriggerId
|
|
1278
|
+
buildTriggerId?: string;
|
|
1279
|
+
searchIndexId?: string;
|
|
1278
1280
|
fuzzySearch?: boolean;
|
|
1279
1281
|
resultsPerPage?: number;
|
|
1280
1282
|
initialState?: {
|
package/dist/index.esm.mjs
CHANGED
|
@@ -1468,7 +1468,8 @@ function useSiteSearch(config) {
|
|
|
1468
1468
|
filter: {
|
|
1469
1469
|
query: state.query,
|
|
1470
1470
|
locale: state.locale,
|
|
1471
|
-
build_trigger_id: config.buildTriggerId
|
|
1471
|
+
build_trigger_id: config.buildTriggerId,
|
|
1472
|
+
search_index_id: config.searchIndexId
|
|
1472
1473
|
},
|
|
1473
1474
|
page: {
|
|
1474
1475
|
limit: resultsPerPage,
|
|
@@ -1476,7 +1477,7 @@ function useSiteSearch(config) {
|
|
|
1476
1477
|
}
|
|
1477
1478
|
};
|
|
1478
1479
|
if (config.fuzzySearch) {
|
|
1479
|
-
request.fuzzy = "true";
|
|
1480
|
+
request.filter.fuzzy = "true";
|
|
1480
1481
|
}
|
|
1481
1482
|
const results = yield config.client.searchResults.rawList(request);
|
|
1482
1483
|
if (!isCancelled) {
|