diff --git a/src/Typesense/AnalyticsRule.ts b/src/Typesense/AnalyticsRule.ts index 59750b72..ec8b3724 100644 --- a/src/Typesense/AnalyticsRule.ts +++ b/src/Typesense/AnalyticsRule.ts @@ -7,6 +7,7 @@ export interface AnalyticsRuleCreateSchema { source: { collections: string[]; }; + expand_query?: boolean; destination: { collection: string; }; diff --git a/test/Typesense/AnalyticsRules.spec.js b/test/Typesense/AnalyticsRules.spec.js index 3bea0533..ac6d2c4d 100644 --- a/test/Typesense/AnalyticsRules.spec.js +++ b/test/Typesense/AnalyticsRules.spec.js @@ -43,6 +43,7 @@ describe("AnalyticsRules", function () { params: { source: { collections: ["products"] }, destination: { collection: "products_top_queries" }, + expand_query: true, limit: 100, }, },