Added facet search option, fixed a bug that distorts the facet count