title: Elasticsearch Python - Index Analyzer & Search Analyzer
body: <p>I am using python api - <a href="http://elasticsearch-py.readthedocs.org" rel="nofollow noreferrer">http://elasticsearch-py.readthedocs.org</a></p>
  
  <p>How can I set change the index analyzer and tokenizer for the index? Thanks</p>
  
  <p>I found suggestions to change the mapping of the index, but there was no documentation on how to do that from python.</p>
  
  <p><a href="https://stackoverflow.com/questions/17940026/partial-search-using-analyzer-in-elasticsearch">Partial Search using Analyzer in ElasticSearch</a> shows settings for n-gram-analyzer but no code to implement it in python.</p>