(search) Revert back to using 'Popular' as the default search filter

Unfiltered is a bit too ... unfiltered, and gives a bad first impression for many queries.
This commit is contained in:
Viktor Lofgren 2023-12-09 16:34:12 +01:00
parent 8ef34883a8
commit 6382f779c3
2 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,6 @@ public class SearchService extends Service {
SearchFrontPageService frontPageService, SearchFrontPageService frontPageService,
SearchErrorPageService errorPageService, SearchErrorPageService errorPageService,
SearchAddToCrawlQueueService addToCrawlQueueService, SearchAddToCrawlQueueService addToCrawlQueueService,
SearchFlagSiteService flagSiteService,
SearchSiteInfoService siteInfoService, SearchSiteInfoService siteInfoService,
SearchQueryService searchQueryService SearchQueryService searchQueryService
) { ) {

View File

@ -38,7 +38,7 @@ public enum SearchProfile {
private final static SearchProfile[] values = values(); private final static SearchProfile[] values = values();
public static SearchProfile getSearchProfile(String param) { public static SearchProfile getSearchProfile(String param) {
if (null == param) { if (null == param) {
return NO_FILTER; return DEFAULT;
} }
for (var profile : values) { for (var profile : values) {
@ -47,7 +47,7 @@ public enum SearchProfile {
} }
} }
return NO_FILTER; return DEFAULT;
} }
public void addTacitTerms(SearchSubquery subquery) { public void addTacitTerms(SearchSubquery subquery) {