added function to set kernel mode
set use inverted index by default