# HG changeset patch # User Arthur Lutz <arthur.lutz@logilab.fr> # Date 1464190980 -7200 # Wed May 25 17:43:00 2016 +0200 # Node ID 7fe4a9f801f2036c02e6ce3e79dd4eabaa796565 # Parent e0a9244f7ebb07367f002e2747f7031494806840 flake8 diff --git a/es.py b/es.py --- a/es.py +++ b/es.py @@ -24,15 +24,15 @@ {'default': {'filter': ['standard', 'my_ascii_folding', 'lowercase', - 'french_snowball',], + 'french_snowball'], 'tokenizer': 'standard'}}, 'filter': {'my_ascii_folding': {'preserve_original': True, 'type': 'asciifolding'}, 'french_snowball': {'type': 'snowball', - 'language': 'French'}, + 'language': 'French'} + } } } - } def indexable_types(schema): diff --git a/hooks.py b/hooks.py --- a/hooks.py +++ b/hooks.py @@ -45,11 +45,11 @@ def __call__(self): if self.entity.cw_etype == 'File': - return # FIXME hack! + return # FIXME hack! 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('IFTISerializable') serializer = self.entity.cw_adapt_to('ISerializable') json = serializer.serialize() es = Elasticsearch(locations and locations.split(','))