search.services.index.prepare module¶
Functions for preparing a Search
(prior to execution).
The primary public object is SEARCH_FIELDS
, which maps Query
fields to query-building functions in the module.
See _query_all_fields()
for information on how results are scored.
-
search.services.index.prepare.
limit_by_classification
(classifications, field='primary_classification')[source]¶ Generate a
Q
to limit a query by by classification.Return type: <function Q at 0x7f5f70230510>