Skip to content
Snippets Groups Projects
Commit 7fe4a9f801f2 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

flake8

parent e0a9244f7ebb
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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(','))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment