You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did some looking around, and found some code present in ElasticSearchBackend.build_search_kwargs() that had to do with models that is missing in ElasticSearch5Backend.build_search_kwargs(). When I added the code from the former into the latter, my searches work as expected again:
Expected behaviour
Calling .models() on an SQS will limit results to the specified models.
Actual behaviour
The provided models are ignored. The SQS will always return all matching models.
Steps to reproduce the behaviour
Resolution
I did some looking around, and found some code present in ElasticSearchBackend.build_search_kwargs() that had to do with models that is missing in ElasticSearch5Backend.build_search_kwargs(). When I added the code from the former into the latter, my searches work as expected again:
I will submit a pull request with the code change, though my fix was just a copy and paste.
Configuration
The text was updated successfully, but these errors were encountered: