Sphinx search for Discuss

Additional fixes to base search class.

Moved platform specific date range filters to their own files instead of
just using Solr syntax which is incompatible with sql and sphinx.