-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SuggesterFilterBackend not returning expected SerializerMethod responses. #292
Comments
Yep. It doesn't yet work with serializers. |
Oh.. could you please advise me if there is any hope for doing the same. or there is any way to pass params with SuggesterFilterBackend API..? suppose I want to search for suggestions with 'amazon' in 'UAE' country, is that possible? |
Sure. Look, suggester backend comes from a view mix-in. You override it and fix it as you want. |
Ok, thank you for your quick reply. I think I can manage my requirement with category context suggesters. |
Yep, they are also supported. Check some examples here. |
SuggesterFilterBackend not returning SerializerMethod responses. it is perfectly ok with CompoundSearchFilterBackend.
but I am facing the issue with suggesters.
Here is my document.py
Here is my serializers.py
And here is my viewset
When I make a search it perfectly shows the result. like this:
but in suggestion i did't get the actual response:
look here, suggester response data are not the same as search response data. in search
'brand_name_country'
return its value. but in suggestion completion, it returnsNull
. and also in suggesters, it didn't return the images' absolute url's.please have a look at this guys.
The text was updated successfully, but these errors were encountered: