indexing and search method for category