Search function

Search function not yet working properly, rendering the whole index,
rather than just the search criteria