'Remove all unwanted sections of the URL and return a string that will
be passed to Elasticsearch.
E.g. \'https://m.domain.com/topic/\' will become \'domain/topic/\', which
will further get tokenized by Elasticsearch into \'domain\' and \'topic\'.
This will never be perfect but it should remove a majority of cruft
from getting indexed.'

@classmethod
def strip_url(cls, url):

    bits = urlparse(url)
    url = bits.netloc
    url = URL_RE.sub('', url)
    url += bits.path
    return url
