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.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠