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.

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ