(search) Better recipe filter

Tune the recipe filter to give better results, by using the 'popular' domains set along with excluding results with heavy tracking.
This commit is contained in:
Viktor Lofgren 2023-12-09 16:53:06 +01:00 committed by Viktor Lofgren
parent f0e736d4ea
commit 37af60254f

View File

@ -17,7 +17,7 @@ public enum SearchProfile {
CORPO_CLEAN("corpo-clean", SearchSetIdentifier.NONE),
ACADEMIA("academia", SearchSetIdentifier.NONE),
PLAIN_TEXT("plain-text", SearchSetIdentifier.NONE),
FOOD("food", SearchSetIdentifier.NONE),
FOOD("food", SearchSetIdentifier.POPULAR),
FORUM("forum", SearchSetIdentifier.NONE),
WIKI("wiki", SearchSetIdentifier.NONE),
DOCS("docs", SearchSetIdentifier.NONE),
@ -72,6 +72,7 @@ public enum SearchProfile {
}
if (this == FOOD) {
subquery.searchTermsAdvice.add(HtmlFeature.CATEGORY_FOOD.getKeyword());
subquery.searchTermsExclude.add("special:ads");
}
}