我想使用SearchQuerySet的窄函数来利用drf haystack中solr中的fq(结果缓存和对分数没有影响)。
我在找像这样的东西
http://example.com/api/v1/location/search/?narrow_by=country:Oslo
如果此功能不可用(很可能不是),那么实现它的最佳方式是什么。
发布于 2016-07-10 07:17:05
你看过drf-haystack上的文档了吗?
https://drf-haystack.readthedocs.io/en/latest/07_faceting.html#narrowing
如果使用最新的v1.6.0rc3版本,有一个混入类提供了对刻面的支持。
https://stackoverflow.com/questions/37676870
复制相似问题