# HG changeset patch
# User Arthur Lutz <arthur.lutz@logilab.fr>
# Date 1463734021 -7200
#      Fri May 20 10:47:01 2016 +0200
# Node ID fa1eb8746f3da9ddd5c98f9f2416977a1cc3f35d
# Parent  a0e41f6bd19bd43783c641dadf85b42c84d9ab28
[es/config] use lowercase and snowball filters in index (TODO : make this configurable somehow)

diff --git a/es.py b/es.py
--- a/es.py
+++ b/es.py
@@ -22,10 +22,17 @@
     return {'analysis':
             {'analyzer':
              {'default': {'filter': ['standard',
-                                     'my_ascii_folding'],
+                                     'my_ascii_folding',
+                                     'lowercase',
+                                     'french_snowball',],
                           'tokenizer': 'standard'}},
              'filter': {'my_ascii_folding': {'preserve_original': True,
-                                             'type': 'asciifolding'}}}}
+                                             'type': 'asciifolding'},
+                        'french_snowball': {'type': 'snowball',
+                                            'language': 'French'},
+             }
+            }
+    }
 
 
 def indexable_types(schema):