Added gazetteer mode for distinguish between normal search and autocompletion.