Currently we are using wildcard query start and end with * to implement the "contains with" function, however it seems the performance is really bad, and we find that ES have documented this on https://www.elastic.co/guide/en/elasticsearch/reference/5.2/query-dsl-wildcard-query.html
So I'm wondering whether there is a better way to replace the wildcard query?