Changed to standard compound id format.

This commit is contained in:
Andrew Lalis 2023-01-28 11:30:08 +01:00
parent 9371431114
commit 75c0fdcff6
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class GymIndexGenerator {
String streetAddress = resultSet.getString("street_address");
BigDecimal latitude = resultSet.getBigDecimal("latitude");
BigDecimal longitude = resultSet.getBigDecimal("longitude");
String gymCompoundId = String.format("%s/%s/%s", countryCode, cityShortName, shortName);
String gymCompoundId = String.format("%s_%s_%s", countryCode, cityShortName, shortName);
Document doc = new Document();
doc.add(new StoredField("compound_id", gymCompoundId));