# HG changeset patch # User Marcin Kuzminski # Date 2010-12-29 01:18:13 # Node ID 0736230c7d911a5219b7ee57f3ae9352c0acea07 # Parent 94f7585af8a1db8dfcdc3dcd3aacaf070d022015 #92 removed content of binary files for whoosh indexer diff --git a/rhodecode/lib/indexers/daemon.py b/rhodecode/lib/indexers/daemon.py --- a/rhodecode/lib/indexers/daemon.py +++ b/rhodecode/lib/indexers/daemon.py @@ -120,8 +120,8 @@ class WhooshIndexingDaemon(object): the instance of vcs backend""" node = self.get_node(repo, path) - #we just index the content of chosen files - if node.extension in INDEX_EXTENSIONS: + #we just index the content of chosen files, and skip binary files + if node.extension in INDEX_EXTENSIONS and not node.is_binary: u_content = node.content if not isinstance(u_content, unicode):