category search now works

MAJOR CHANGES to the search function. Now allows categories to be index
correctly. More coming in the new year