Fixed index creation on non-fts installs.

Signed-off-by: Xiaomao Chen <xiaomao5@live.com>