django - haystack: How to limit SearchQuerySet to a single SearchIndex? -


context:
searchindex analogous django's model. tied single model via get_model.
searchqueryset analogous django's queryset (except way of obtaining instance).
haystack_connections analogous django's databases.

one not apparent difference performing searchqueryset operations uses searchindex subclasses have.
how perform operations on single searchindex (for single model) only? connections don't seem meant this.

searchqueryset.models answer, buried deep in docs.
add .models(djangomodel1, djangomodel2) searchqueryset calls, models returned chosen searchindexes' get_model.


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -