Skip to content

Commit 3468b6b

Browse files
authored
Merge pull request #38 from apisearch-io/feature/multiquery
Added multiquery and multiresult in model
2 parents 7241294 + c5ce8db commit 3468b6b

File tree

12 files changed

+510
-22
lines changed

12 files changed

+510
-22
lines changed

dist/apisearch.js

+118-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Query/Query.d.ts

+40-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ import { SortBy } from "./SortBy";
99
/**
1010
* Query constants
1111
*/
12-
export declare const QUERY_DEFAULT_FROM = 0;
1312
export declare const QUERY_DEFAULT_PAGE = 1;
1413
export declare const QUERY_DEFAULT_SIZE = 10;
15-
export declare const QUERY_INFINITE_SIZE = 1000;
1614
export declare const NO_MIN_SCORE = 0;
1715
/**
1816
* Query class
@@ -37,6 +35,8 @@ export declare class Query {
3735
private fuzziness;
3836
private minScore;
3937
private user;
38+
private metadata;
39+
private subqueries;
4040
/**
4141
* Constructor
4242
*
@@ -86,6 +86,14 @@ export declare class Query {
8686
* @return {Query}
8787
*/
8888
static createByUUIDs(...uuids: ItemUUID[]): Query;
89+
/**
90+
* Create by UUIDs
91+
*
92+
* @param queries
93+
*
94+
* @return {Query}
95+
*/
96+
static createMultiquery(queries: Object): Query;
8997
/**
9098
* set fields
9199
*
@@ -532,6 +540,36 @@ export declare class Query {
532540
* @return {User}
533541
*/
534542
getUser(): User;
543+
/**
544+
* set metadata value
545+
*
546+
* @param name
547+
* @param value
548+
*
549+
* @return Query
550+
*/
551+
setMetadataValue(name: string, value: any): Query;
552+
/**
553+
* Get metadata
554+
*
555+
* @return any
556+
*/
557+
getMetadata(): any;
558+
/**
559+
* Add subquery
560+
*
561+
* @param name
562+
* @param subquery
563+
*
564+
* @return Query
565+
*/
566+
addSubquery(name: string, subquery: Query): Query;
567+
/**
568+
* Get subqueries
569+
*
570+
* @return Object
571+
*/
572+
getSubqueries(): Object;
535573
/**
536574
* To array
537575
*

0 commit comments

Comments
 (0)