give analyzers definitions
@@ -39,6 +39,31 @@ Sample Mapping
.. code:: json
{
+ "settings": {
+ "analysis": {
+ "analyzer": {
+ "autocomplete": {
+ "tokenizer": "autocomplete",
+ "filter": [
+ "lowercase"
+ ]
+ },
+ "autocomplete_search": {
+ "tokenizer": "lowercase"
+ }
+ },
+ "tokenizer": {
+ "autocomplete": {
+ "type": "edge_ngram",
+ "min_gram": 2,
+ "max_gram": 10,
+ "token_chars": [
+ "letter"
+ ]
+ }
+ }
+ }
+ },
"map_test" : {
"mappings" : {
"doc" : {
