Add rewrite rule for the fulltextsearch on search

fix #1059