i found my error, it was in the JSON this is the format that it should have:
{
  
          "settings":{
              "index":{
         "analysis": {
            "filter": {
               "autocomplete_filter": {
                  "type": "edge_ngram",
                  "min_gram": "2",
                  "max_gram": "20"
               }
            },
            "analyzer": {
                  "auto_complete": {
                     "type": "custom",
                     "tokenizer": "keyword",
                     "filter": [
                        "lowercase",
                        "autocomplete_filter"
                     ]
                  }
               ,
               
                  "email_custom": {
                     "type": "custom",
                     "tokenizer": "uax_url_email",
                     "filter": [
                        "lowercase",
                        "autocomplete_filter"
                     ]
                  }
         }
            
         }
      
   }
}
}

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a912c56a-3983-4572-9c7a-683b77ca663e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to