For the typesense-instantsearch-adapter, I see tha...
# community-help
j
For the typesense-instantsearch-adapter, I see that for geo_search, we need to specify it when initializing the field name for the adapter. What happens if we have multiple fields for geo_search? https://github.com/typesense/typesense-instantsearch-adapter#geosearch
j
Could you give me an example where you’d want to use multiple geo fields?
j
We have both a city that a user is currently located in, and what cities the user is open to moving to. We want the ability to filter over both - • "Give me all users who are currently living in/around NY and open to moving to/around SF"
j
And both these fields are lat longs?
j
Yep!
(The second field is a lat long array)
j
Interesting! Unfortunately, Instantsearch doesn’t allow a way to use multiple geo fields, since Algolia (who built Instantsearch) does not support multiple geo fields in the same record
So you would have to build your own UI to be able to do something like this