title: ElasticSearch autocomplete for keywords from a string
body: <p>My document looks like:</p>
  
  <pre><code>   "hits": {
        "total": 4,
        "max_score": 1,
        "hits": [
           {
              "_index": "test_db2",
              "_type": "test",
              "_id": "1",
              "_score": 1,
              "_source": {
                 "name": "very cool shoes",
                 "price": 26
              }
           },
           {
              "_index": "test_db2",
              "_type": "test",
              "_id": "2",
              "_score": 1,
              "_source": {
                 "name": "great shampoo",
                 "price": 15
              }
           },
           {
              "_index": "test_db2",
              "_type": "test",
              "_id": "3",
              "_score": 1,
              "_source": {
                 "name": "shirt",
                 "price": 25
              }
           }
        ]
      }
  </code></pre>
  
  <p>How to create autocomplete in elasticsearch like for example: 
  I put in input word "sh" , after that I should see result </p>
  
  <blockquote>
    <p><strong>sh</strong>oes</p>
    
    <p><strong>sh</strong>ampoo</p>
    
    <p><strong>sh</strong>irt</p>
  </blockquote>
  
  <p>.....</p>
  
  <p><a href="https://www.shopello.no/samarbeid" rel="nofollow">Example of what I need</a></p>