Leo modified m_search and v_index

Fixed functionality issues with initial searching (the starting error
which says $books is not defined), added the filters for searching on
v_index, and updated the search functions to accommodate search filters.