prune some debug code path.

fix bug when fall back to full text search but forget to sort
fix bug in calculate search time.
stem all keyphrase in ontology when they are being loaded from db