wagtailsearch: Make it possible to short-circuit search to returns pks only

In some situations, we are not interested in a full-blown queryset, and
a simple list of PKs is much more efficient.