changed type to ngram for autocomplete