diff --git a/es.py b/es.py index e0a9244f7ebb07367f002e2747f7031494806840_ZXMucHk=..7fe4a9f801f2036c02e6ce3e79dd4eabaa796565_ZXMucHk= 100644 --- a/es.py +++ b/es.py @@ -24,8 +24,8 @@ {'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', @@ -28,7 +28,8 @@ 'tokenizer': 'standard'}}, 'filter': {'my_ascii_folding': {'preserve_original': True, 'type': 'asciifolding'}, 'french_snowball': {'type': 'snowball', - 'language': 'French'}, + 'language': 'French'} + } } } @@ -33,6 +34,5 @@ } } - } def indexable_types(schema): diff --git a/hooks.py b/hooks.py index e0a9244f7ebb07367f002e2747f7031494806840_aG9va3MucHk=..7fe4a9f801f2036c02e6ce3e79dd4eabaa796565_aG9va3MucHk= 100644 --- a/hooks.py +++ b/hooks.py @@ -45,7 +45,7 @@ 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: @@ -49,7 +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('IFTISerializable') serializer = self.entity.cw_adapt_to('ISerializable') json = serializer.serialize() es = Elasticsearch(locations and locations.split(','))