We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04d27b commit aa16c48Copy full SHA for aa16c48
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "quickwit-datasource",
3
- "version": "0.8.0+paypay",
+ "version": "0.8.1+paypay",
4
"description": "Quickwit datasource",
5
"scripts": {
6
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
src/datasource/base.ts
@@ -396,7 +396,10 @@ export class BaseQuickwitDataSource
396
}
397
398
// Surround the query with () to ensure that the filters are properly AND'd
399
- let finalQuery = '(' + query + ')';
+ let finalQuery = query.trim();
400
+ if (finalQuery.length > 0) {
401
+ finalQuery = '(' + finalQuery + ')';
402
+ }
403
404
adhocFilters.forEach((filter) => {
405
finalQuery = addAddHocFilter(finalQuery, filter);
0 commit comments