Mapping a completion field

To be able to provide search functionalities for our user, one of the most common requirements is to provide a text suggestion for our query.

Elasticsearch provides a helper for archiving this functionality using a special type mapping called completion.