diff --git a/docs/search-core.verticalsearchrequest.facetallowlist.md b/docs/search-core.verticalsearchrequest.facetallowlist.md
new file mode 100644
index 00000000..7d23cab9
--- /dev/null
+++ b/docs/search-core.verticalsearchrequest.facetallowlist.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [@yext/search-core](./search-core.md) > [VerticalSearchRequest](./search-core.verticalsearchrequest.md) > [facetAllowlist](./search-core.verticalsearchrequest.facetallowlist.md)
+
+## VerticalSearchRequest.facetAllowlist property
+
+A subset of facet field IDs that facet options will be retrieved for.
+
+**Signature:**
+
+```typescript
+facetAllowlist?: string[];
+```
diff --git a/docs/search-core.verticalsearchrequest.md b/docs/search-core.verticalsearchrequest.md
index abab378c..5735e555 100644
--- a/docs/search-core.verticalsearchrequest.md
+++ b/docs/search-core.verticalsearchrequest.md
@@ -54,6 +54,25 @@ Description
_(Optional)_ Used to trigger Search [Query Rules](https://hitchhikers.yext.com/tracks/answers-advanced/ans302-query-rules/).
+
+
|
diff --git a/etc/search-core.api.md b/etc/search-core.api.md
index c258d540..8da9b400 100644
--- a/etc/search-core.api.md
+++ b/etc/search-core.api.md
@@ -880,6 +880,7 @@ export interface VerticalResults {
// @public
export interface VerticalSearchRequest extends SearchRequest {
context?: Context;
+ facetAllowlist?: string[];
facets?: Facet[];
limit?: number;
location?: LatLong;
diff --git a/package-lock.json b/package-lock.json
index c61c0cd8..0a059c33 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@yext/search-core",
- "version": "2.6.3",
+ "version": "2.6.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@yext/search-core",
- "version": "2.6.3",
+ "version": "2.6.4",
"license": "BSD-3-Clause",
"dependencies": {
"@babel/runtime-corejs3": "^7.12.5",
diff --git a/package.json b/package.json
index 58ac833a..048016d0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@yext/search-core",
- "version": "2.6.3",
+ "version": "2.6.4",
"description": "Typescript Networking Library for the Yext Search API",
"main": "./dist/commonjs/src/index.js",
"module": "./dist/esm/src/index.js",
diff --git a/src/infra/SearchServiceImpl.ts b/src/infra/SearchServiceImpl.ts
index 053cad1f..4734400f 100644
--- a/src/infra/SearchServiceImpl.ts
+++ b/src/infra/SearchServiceImpl.ts
@@ -69,7 +69,8 @@ interface VerticalSearchQueryParams extends QueryParams {
source?: QuerySource | string,
locationRadius?: string,
queryId?: string,
- visitor?: string
+ visitor?: string,
+ facetAllowlist?: string
}
/**
@@ -167,6 +168,7 @@ export class SearchServiceImpl implements SearchService {
queryId: request.queryId,
visitorId: this.config.visitor?.id,
visitorIdMethod: this.config.visitor?.idMethod,
+ facetAllowlist: request.facetAllowlist?.join(','),
...this.config?.additionalQueryParams
};
@@ -200,4 +202,4 @@ export class SearchServiceImpl implements SearchService {
}
return `${latLong.latitude},${latLong.longitude}`;
}
-}
\ No newline at end of file
+}
diff --git a/src/models/searchservice/request/VerticalSearchRequest.ts b/src/models/searchservice/request/VerticalSearchRequest.ts
index b9cdf9ab..616c0636 100644
--- a/src/models/searchservice/request/VerticalSearchRequest.ts
+++ b/src/models/searchservice/request/VerticalSearchRequest.ts
@@ -48,5 +48,7 @@ export interface VerticalSearchRequest extends SearchRequest {
/** The radius (in meters) to filter the vertical search by. */
locationRadius?: number,
/** The queryId for the query, if this is a repeat query. */
- queryId?: string
-}
\ No newline at end of file
+ queryId?: string,
+ /** A subset of facet field IDs that facet options will be retrieved for. */
+ facetAllowlist?: string[]
+}
diff --git a/test-site/index.html b/test-site/index.html
index 9de8956f..26a82d4c 100644
--- a/test-site/index.html
+++ b/test-site/index.html
@@ -15,5 +15,6 @@
+
|