Skip to content

Commit

Permalink
Implemented #135: Remove home pages from Newest Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
m-i-l committed Dec 22, 2023
1 parent 4c67690 commit 9a51a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/content/dynamic/searchmysite/solr.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
default_sort_newest = "published_date desc"
mandatory_filter_queries_search = ["public:true", "!content_type:*xml", "!content_type:application*", "!content_type:binary*"]
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]"] # to ensure no future dates or infeasibly far past dates
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--'
solr_request_handler = "select" # The custom config in solrconfig.xml, especially the relevancy tuning, is only set for the select request handler
solr_request_headers = {'Content-Type': 'text/json'}
Expand Down

0 comments on commit 9a51a44

Please sign in to comment.