use ajax method instead of post
get method for query (not empty)
calculate idfs by worker thread.