Opensearch 2.7 location search using @searchable through graphql

0

I'm developing a React Native app using the AWS Amplify GraphQL API. Whenever a user posts, I also capture their latitude and longitude. I'd like to use this data to identify and show other users within a 20-mile radius of that user. I discovered that OpenSearch can help with this, and by adding the @searchable directive to my GraphQL schema and executing 'amplify push', an OpenSearch domain was created for me.

However, I'm unsure of how to search based on the location and specify the radius. Most examples I've found online pertain to ElasticSearch and are not compatible with the version of OpenSearch I'm using, which is 2.7.

Any guidance on this would be greatly appreciated.

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions