ngram vector search functions added