Full advanced search functionality.

Not all search fields have been tested. But some definitely work.