how to search by foreign key in algolia instant search? -
suppose, have 5 countries , there 10 cities in each country , again, there 20 different places in each city.there 3 tables in rdbms , thing want implement search using algolia instant search js. can please tell me, how can achieve search like, when search or filter 1 country , search results show places of particular country. tables needs indexed in algolia?
create 1 algolia record each place. inside of document, should include attributes of city , country you'd search on (city.name, country.name, etc).
Comments
Post a Comment