replaced lucene n-gram tokenizer with custom-built function, marking
entities to original string