'Get the default QuerySet to index when doing an index update.
Subclasses can override this method to take into account related
model modification times.
The default is to use ``SearchIndex.index_queryset`` and filter
based on ``SearchIndex.get_updated_field``'

def build_queryset(self, using=None, start_date=None, end_date=None):

    extra_lookup_kwargs = {}
    model = self.get_model()
    updated_field = self.get_updated_field()
    update_field_msg = (u"No    updated    date    field    found    for    '%s'    -    not    restricting    by    age." % model.__name__)
    if start_date:
        if updated_field:
            extra_lookup_kwargs[(u'%s__gte' % updated_field)] = start_date
        else:
            warnings.warn(update_field_msg)
    if end_date:
        if updated_field:
            extra_lookup_kwargs[(u'%s__lte' % updated_field)] = end_date
        else:
            warnings.warn(update_field_msg)
    index_qs = None
    if hasattr(self, u'get_queryset'):
        warnings.warn(u"'SearchIndex.get_queryset'    was    deprecated    in    Haystack    v2.    Please    rename    the    method    'index_queryset'.")
        index_qs = self.get_queryset()
    else:
        index_qs = self.index_queryset(using=using)
    if (not hasattr(index_qs, u'filter')):
        raise ImproperlyConfigured((u"The    '%r'    class    must    return    a    'QuerySet'    in    the    'index_queryset'    method." % self))
    return index_qs.filter(**extra_lookup_kwargs).order_by(model._meta.pk.name)
