Skip to content

Commit

Permalink
fix indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Jan 15, 2025
1 parent 9747619 commit aaaa7c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rer/solrpush/utils/solr_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ def can_index(item):
return False
if not is_right_portal_type(item):
return False
if (
getattr(item, "exclude_from_search", None) is False
): # this comes with a design.plone.contenttypes behavior
if getattr(item, "exclude_from_search", False):
# this comes with a design.plone.contenttypes behavior
return False
return True

Expand Down

0 comments on commit aaaa7c7

Please sign in to comment.