Skip to content

Commit

Permalink
Fixed #147: Don't return CSS files as results
Browse files Browse the repository at this point in the history
  • Loading branch information
m-i-l committed May 7, 2024
1 parent f83bac8 commit c6e7abc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/content/dynamic/searchmysite/solr.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
default_sort_search = "score desc"
default_sort_browse = "date_domain_added desc"
default_sort_newest = "published_date desc"
mandatory_filter_queries_search = ["public:true", "!content_type:*xml", "!content_type:application*", "!content_type:binary*"]
#mandatory_filter_queries_search = ["public:true", "!content_type:*xml", "!content_type:text/css", "!content_type:application*", "!content_type:binary*"]
mandatory_filter_queries_search = ["public:true", "(content_type:text/html OR content_type:text/plain)"]
mandatory_filter_queries_browse = ["public:true", "is_home:true"]
mandatory_filter_queries_newest = mandatory_filter_queries_search + ["contains_adverts:false", "published_date:[NOW-30YEARS TO NOW]", "is_home:false"] # to ensure no future dates or infeasibly far past dates, and no home pages
split_text = '--split-here--'
Expand Down

0 comments on commit c6e7abc

Please sign in to comment.