use map for category and normal search.