drf-haystack icon indicating copy to clipboard operation
drf-haystack copied to clipboard

add filter for highlight mixin

Open Mr-win7 opened this issue 7 years ago • 5 comments

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

Mr-win7 avatar Oct 17 '18 07:10 Mr-win7

Can I work on this?

atmishra avatar Oct 20 '19 14:10 atmishra

Absolutely 😁

rhblind avatar Oct 21 '19 08:10 rhblind

Thanks! Can you assign it to me? I have started working on this.

atmishra avatar Oct 23 '19 16:10 atmishra

Is this WIP? or abandoned?

ajiteshr7 avatar Aug 20 '20 13:08 ajiteshr7

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"].

jysatuo avatar Jul 12 '21 12:07 jysatuo