@eeacms/volto-globalsearch 1.0.2 → 1.0.3
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.
- package/CHANGELOG.md +8 -1
- package/package.json +1 -1
- package/src/config/facets.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [1.0.
|
|
7
|
+
### [1.0.3](https://github.com/eea/volto-globalsearch/compare/1.0.2...1.0.3) - 12 January 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- if the clusters facet is used, we don't want answer extraction [Zoltan Szabo - [`6ce63af`](https://github.com/eea/volto-globalsearch/commit/6ce63aff3a72134a07cea6258df6e53b62aadc81)]
|
|
12
|
+
- 'Published' facet should not be used when running the query for answer extraction [Zoltan Szabo - [`d8fea0e`](https://github.com/eea/volto-globalsearch/commit/d8fea0e60adf9c67539d8bda18be2cf93f156aa2)]
|
|
13
|
+
- Added 'Last 5 years' facet option, and made it default [Zoltan Szabo - [`0aec4d5`](https://github.com/eea/volto-globalsearch/commit/0aec4d52597047ed621a591fae6e9b98763d498e)]
|
|
14
|
+
### [1.0.2](https://github.com/eea/volto-globalsearch/compare/1.0.1...1.0.2) - 6 January 2023
|
|
8
15
|
|
|
9
16
|
#### :hammer_and_wrench: Others
|
|
10
17
|
|
package/package.json
CHANGED
package/src/config/facets.js
CHANGED
|
@@ -120,6 +120,7 @@ const facets = [
|
|
|
120
120
|
label: 'Section',
|
|
121
121
|
show: 10000,
|
|
122
122
|
showInFacetsList: false,
|
|
123
|
+
ignoreNLPWhenActive: true,
|
|
123
124
|
}),
|
|
124
125
|
|
|
125
126
|
multiTermFacet({
|
|
@@ -225,6 +226,7 @@ const facets = [
|
|
|
225
226
|
showInSecondaryFacetsList: true,
|
|
226
227
|
// rangeType: 'dateRange',
|
|
227
228
|
isMulti: false,
|
|
229
|
+
ignoreFromNlp: true,
|
|
228
230
|
ranges: [
|
|
229
231
|
{ key: 'All time' },
|
|
230
232
|
{ key: 'Last week', from: 'now-1w', to: 'now' },
|
|
@@ -232,10 +234,11 @@ const facets = [
|
|
|
232
234
|
{ key: 'Last 3 months', from: 'now-3m', to: 'now' },
|
|
233
235
|
{ key: 'Last year', from: 'now-1y', to: 'now' },
|
|
234
236
|
{ key: 'Last 2 years', from: 'now-2y', to: 'now' },
|
|
237
|
+
{ key: 'Last 5 years', from: 'now-5y', to: 'now' },
|
|
235
238
|
],
|
|
236
239
|
factory: 'DropdownRangeFilter',
|
|
237
240
|
default: {
|
|
238
|
-
values: ['Last
|
|
241
|
+
values: ['Last 5 years'],
|
|
239
242
|
type: 'any',
|
|
240
243
|
},
|
|
241
244
|
}),
|