Skip to content
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

location filtering and include ? #284

Open
akhan118 opened this issue Feb 8, 2022 · 3 comments
Open

location filtering and include ? #284

akhan118 opened this issue Feb 8, 2022 · 3 comments
Labels

Comments

@akhan118
Copy link
Contributor

akhan118 commented Feb 8, 2022

Hi,

is it possible to get all publishers within the specific geo distance like below AND also return publishers who are not in that radius and have the name=john?

http://localhost:8000/search/publishers/?location__geo_distance=100000km__12.04__-63.93

also, is minimum_should_match available?

@barseghyanartur
Copy link
Owner

@akhan118:

You will need to write a custom backend for that.

@akhan118
Copy link
Contributor Author

akhan118 commented Feb 8, 2022

thank you, is there an example of how to write one? I'll give a try

@barseghyanartur
Copy link
Owner

You could take a look at any existing backends.

For instance, for something that is hard to generalise, something like this could be written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants