diff --git a/hooks.py b/hooks.py
index fa1eb8746f3da9ddd5c98f9f2416977a1cc3f35d_aG9va3MucHk=..153925ddddc282528cf4285b2d775218872feca5_aG9va3MucHk= 100644
--- a/hooks.py
+++ b/hooks.py
@@ -44,6 +44,8 @@
     category = 'es'
 
     def __call__(self):
+        if self.entity.cw_etype == 'File':
+            return # FIXME hack!
         locations = self._cw.vreg.config['elasticsearch-locations']
         index_name = self._cw.vreg.config['index-name']
         if locations and index_name:
@@ -47,6 +49,7 @@
         locations = self._cw.vreg.config['elasticsearch-locations']
         index_name = self._cw.vreg.config['index-name']
         if locations and index_name:
+            #serializer = self.entity.cw_adapt_to('IFTISerializable')
             serializer = self.entity.cw_adapt_to('ISerializable')
             json = serializer.serialize()
             es = Elasticsearch(locations and locations.split(','))