@arsedizioni/ars-utils 20.3.61 → 20.3.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2877,8 +2877,13 @@ class ClipperSearchFreeTextQueryBuilderComponent {
|
|
|
2877
2877
|
let parts = this.queryOr.split(',');
|
|
2878
2878
|
for (let i = 0; i < parts.length; i++) {
|
|
2879
2879
|
if (query.length > 0)
|
|
2880
|
-
query += '
|
|
2880
|
+
query += ' ';
|
|
2881
|
+
const phrase = parts[i].indexOf(' ') !== -1;
|
|
2882
|
+
if (phrase)
|
|
2883
|
+
query += '"';
|
|
2881
2884
|
query += parts[i].replace('"', '').trim();
|
|
2885
|
+
if (phrase)
|
|
2886
|
+
query += '"';
|
|
2882
2887
|
}
|
|
2883
2888
|
query += ' ';
|
|
2884
2889
|
}
|
|
@@ -2887,15 +2892,21 @@ class ClipperSearchFreeTextQueryBuilderComponent {
|
|
|
2887
2892
|
let parts = this.queryAnd.split(',');
|
|
2888
2893
|
for (let i = 0; i < parts.length; i++) {
|
|
2889
2894
|
if (query.length > 0)
|
|
2890
|
-
query += '
|
|
2895
|
+
query += ' ';
|
|
2896
|
+
query += '+';
|
|
2897
|
+
const phrase = parts[i].indexOf(' ') !== -1;
|
|
2898
|
+
if (phrase)
|
|
2899
|
+
query += '"';
|
|
2891
2900
|
query += parts[i].replace('"', '').trim();
|
|
2901
|
+
if (phrase)
|
|
2902
|
+
query += '"';
|
|
2892
2903
|
}
|
|
2893
2904
|
query += ' ';
|
|
2894
2905
|
}
|
|
2895
2906
|
// Start with
|
|
2896
2907
|
if (this.queryStart.length > 0) {
|
|
2897
2908
|
if (query.length > 0)
|
|
2898
|
-
query += '
|
|
2909
|
+
query += ' +';
|
|
2899
2910
|
query += this.queryStart.replace('"', '').trim();
|
|
2900
2911
|
query += '*';
|
|
2901
2912
|
query += ' ';
|
|
@@ -2910,8 +2921,14 @@ class ClipperSearchFreeTextQueryBuilderComponent {
|
|
|
2910
2921
|
let parts = this.queryNot.split(',');
|
|
2911
2922
|
for (let i = 0; i < parts.length; i++) {
|
|
2912
2923
|
if (query.length > 0)
|
|
2913
|
-
query += '
|
|
2924
|
+
query += ' ';
|
|
2925
|
+
query += '-';
|
|
2926
|
+
const phrase = parts[i].indexOf(' ') !== -1;
|
|
2927
|
+
if (phrase)
|
|
2928
|
+
query += '"';
|
|
2914
2929
|
query += parts[i].replace('"', '').trim();
|
|
2930
|
+
if (phrase)
|
|
2931
|
+
query += '"';
|
|
2915
2932
|
}
|
|
2916
2933
|
query += ' ';
|
|
2917
2934
|
}
|