Added query autocompletion basic functionality