8000 Added promoted in aggregation + fixes · apisearch-io/javascript-client@c278116 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit c278116

Browse files
committed
Added promoted in aggregation + fixes
1 parent 2b2c593 commit c278116

18 files changed

+282
-138
lines changed

.circleci/config.yml

Expand all lines: .circleci/config.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
discovery.type: single-node
1111
action.auto_create_index: "-apisearch*,+*"
1212

13-
- image: apisearchio/search-server:commit-71e01ad
13+
- image: apisearchio/search-server:commit-602cebd
1414
environment:
1515
APISEARCH_GOD_TOKEN: 0e4d75ba-c640-44c1-a745-06ee51db4e93
1616
APISEARCH_ENABLED_PLUGINS: elasticsearch

dist/apisearch.js

Lines changed: 53 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Query/Aggregation.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export declare class Aggregation {
1717
private subgroup;
1818
private sort;
1919
private limit;
20+
private promoted;
2021
/**
2122
* Construct
2223
*
@@ -27,6 +28,7 @@ export declare class Aggregation {
2728
* @param subgroup
2829
* @param sort
2930
* @param limit
31+
* @param promoted
3032
*/
3133
private constructor();
3234
/**
@@ -71,6 +73,12 @@ export declare class Aggregation {
7173
* @return {number}
7274
*/
7375
getLimit(): number;
76+
/**
77+
* Get promoted
78+
*
79+
* @return {[]}
80+
*/
81+
getPromoted(): string[];
7482
/**
7583
* Create
7684
*
@@ -81,10 +89,11 @@ export declare class Aggregation {
8189
* @param subgroup
8290
* @param sort
8391
* @param limit
92+
* @param promoted
8493
*
8594
* @returns {Aggregation}
8695
*/
87-
static create(name: string, field: string, applicationType: number, filterType: string, subgroup?: string[], sort?: string[], limit?: number): Aggregation;
96+
static create(name: string, field: string, applicationType: number, filterType: string, subgroup?: string[], sort?: string[], limit?: number, promoted?: string[]): Aggregation;
8897
/**
8998
* To array
9099
*

0 commit comments

Comments
 (0)
0