Search posts, tags, users, and pages
As part of the #AmplifyHashnode hackathon, I've decided to build a restaurant review app that leverages React-Native and Amplify. This is day 4-5 of my journey. The next big piece of the app is the discovery part and ElasticSearch just happens to be ...
Matthew
@andthensumm · Chicago, IL
You can get it
Heyooo, I'm a full stack React | Native | Servereless developer out here trying to bring his apps to life. Find me on twitter @andthensumm
Markdown supported · ⌘↵ to post
Zolcsi
Great article, thank you! I am wondering if it would be possible to give the establishment a radius field and in the query ask if the input location (without radius) is in the range of the establishment. How would you do it?
I don’t know about putting a radius field on the location but if you passed in the plceID into the filter params, it would have the same effect.
`if (!$util.isNull($context.args.input.byPlaceID )) $util.qr($query.bool.must.add({ "match": { "placeID": "$context.args.input.byPlaceID" } }))
#end `
Zolcsi
Great article, thank you! I am wondering if it would be possible to give the establishment a radius field and in the query ask if the input location (without radius) is in the range of the establishment. How would you do it?