drf-haystack
drf-haystack copied to clipboard
add filter for highlight mixin
when I was using highlight mixin, I found that some arguments like 'page=2' were highlighted and I had no choice but rewrite the to_presentation method. Due to #126 , I cannot use SearchQuerySet.highlight() and rewrite the get_request_filters method. Could you please add a field for remove some argument of highlight mixin?
Here is some information. Django==1.11 django-haystack==2.8.1 djangorestframework==3.8.2 drf-haystack==1.8.2
Can I work on this?
Absolutely 😁
Thanks! Can you assign it to me? I have started working on this.
Is this WIP? or abandoned?
seems i‘m too late,I have the same issue,i fixed it just replace ret["highlighted"] = instance.highlighted[0] to ret["highlighted"] = instance.highlighted["text"].