We're working on a site that has multiple countries and I'm just wondering what's the best way to organize the indices. There's not much variation between the countries - they're all similar collections so one way would be to put all countries in one index (but there's a lot of them) and then always add a filter to the search query based on the country users are searching from.
The other option would be to create a separate index for each country. This seems cleaner, but then if there was a change to the mappings, I'd need to make this update for each country.
Hi Ryan,
I guess that multiple countries means also multiple languages? Then having one index per country with one type each, and each one a different mapping that works well with each specific language is what I would do.
There are different ways to do this though. Maybe you can tell us more about what the website does and how the users search, so we can have a better idea of how to tackle it?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.