add index on ngrams