Commit f378755
Clarin9/Make default search items-only, configurable via discovery.cfg (#1423)
* Restrict default Discovery search to items only
Remove communities and collections from the default search configuration's
filter queries so /search returns items only (restores CLARIN v7 behaviour
at the source, for all API consumers). Query-time filter; no reindex needed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Make default-search resource types configurable via discovery.cfg
Externalize the default Discovery filter query to a new
discovery.search.default.filterquery property (items only by default;
documented all-types alternative), referenced from discovery.xml.
Admins can now include/exclude communities and collections from /search
without editing Spring XML.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Keep all-types default search in test config for upstream Discovery ITs
The upstream DiscoveryRestControllerIT / DiscoveryVersioningIT assert that
the default search returns communities and collections. The CLARIN default
is now items-only, so pin the original all-types filter query in the test
local.cfg to keep those ITs valid without editing their assertions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Matus Kasak <matus.kasak@dataquest.sk>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent b13cdd7 commit f378755
3 files changed
Lines changed: 11 additions & 2 deletions
File tree
- dspace-api/src/test/data/dspaceFolder/config
- dspace/config
- modules
- spring/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
| 262 | + | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
0 commit comments