fix search index operation, bind proper this scope
fix search query by adding end function with callback