mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(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:
parent
f0e736d4ea
commit
37af60254f
@ -17,7 +17,7 @@ public enum SearchProfile {
|
|||||||
CORPO_CLEAN("corpo-clean", SearchSetIdentifier.NONE),
|
CORPO_CLEAN("corpo-clean", SearchSetIdentifier.NONE),
|
||||||
ACADEMIA("academia", SearchSetIdentifier.NONE),
|
ACADEMIA("academia", SearchSetIdentifier.NONE),
|
||||||
PLAIN_TEXT("plain-text", SearchSetIdentifier.NONE),
|
PLAIN_TEXT("plain-text", SearchSetIdentifier.NONE),
|
||||||
FOOD("food", SearchSetIdentifier.NONE),
|
FOOD("food", SearchSetIdentifier.POPULAR),
|
||||||
FORUM("forum", SearchSetIdentifier.NONE),
|
FORUM("forum", SearchSetIdentifier.NONE),
|
||||||
WIKI("wiki", SearchSetIdentifier.NONE),
|
WIKI("wiki", SearchSetIdentifier.NONE),
|
||||||
DOCS("docs", SearchSetIdentifier.NONE),
|
DOCS("docs", SearchSetIdentifier.NONE),
|
||||||
@ -72,6 +72,7 @@ public enum SearchProfile {
|
|||||||
}
|
}
|
||||||
if (this == FOOD) {
|
if (this == FOOD) {
|
||||||
subquery.searchTermsAdvice.add(HtmlFeature.CATEGORY_FOOD.getKeyword());
|
subquery.searchTermsAdvice.add(HtmlFeature.CATEGORY_FOOD.getKeyword());
|
||||||
|
subquery.searchTermsExclude.add("special:ads");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user