search - How do I query for empty MultiValueField results in Django Haystack -
using Django 1.4.2, Haystack 2.0beta, and ElasticSearch 0.19, how do I query for the results that are empty set Do I In this example, the 'Email' is multilife, so we will create 'num_emails': Now, in your searches you can use [] for a MultiValueField?
num_ & lt; Field & gt; and the query against it.
Class Person Index (indexed search index, index.index and cable): text = index . CRField (Document = True, Use UN_Template = True) Name = Index. CHRfield (Model_AtTro = 'name') Email = IndexMultiWillfield (empty = TrueNew)
Can
findcase () Filters (num_emails = 0)
Comments
Post a Comment