Search function in backend only working for first category word?