From c53165654c6355c0c131bce8e7b763ccae8daeef Mon Sep 17 00:00:00 2001 From: Arild Matsson Date: Tue, 30 Jan 2024 13:48:21 +0100 Subject: [PATCH] Constrain CQP subqueries to span match --- CHANGELOG.md | 1 + app/config/statistics_config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff0150f68..4a46e4a41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Unnecessary scrollbars in the corpus selector info panel [#333](https://github.com/spraakbanken/korp-frontend/issues/333) - Bug with undefined `arguments` - On repetition error (all tokens repeat from 0), restore red outline for input +- Use `` to constraint CQP subqueries (from statistics rows etc) ## [9.5.0] - 2023-01-22 diff --git a/app/config/statistics_config.js b/app/config/statistics_config.js index d7eb5ad6c..5fba282bf 100644 --- a/app/config/statistics_config.js +++ b/app/config/statistics_config.js @@ -21,7 +21,7 @@ let getCqp = function (hitValues, ignoreCase) { } tokens.push("[" + andExpr.join(" & ") + "]") } - return tokens.join(" ") + return ` ${tokens.join(" ")} []* ` } let reduceCqp = function (type, tokens, ignoreCase) {