We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00a9e84 commit 6b36379Copy full SHA for 6b36379
src/query.ts
@@ -166,6 +166,11 @@ export class QueryBuilder<D extends Document> {
166
return this;
167
}
168
169
+ public withCustomFilter(query: Query[]): QueryBuilder<D> {
170
+ this.searchParams.filter.push(query);
171
+ return this;
172
+ }
173
+
174
public withSortBy(field: string, direction: "asc" | "desc"): QueryBuilder<D> {
175
this.searchParams.rerank.push({ [field]: { order: direction } });
176
0 commit comments