fix search query neq bug

refine interfaces