diff --git a/gymboard-search/src/main/java/nl/andrewlalis/gymboardsearch/index/GymIndexGenerator.java b/gymboard-search/src/main/java/nl/andrewlalis/gymboardsearch/index/GymIndexGenerator.java index d231c6b..fe85338 100644 --- a/gymboard-search/src/main/java/nl/andrewlalis/gymboardsearch/index/GymIndexGenerator.java +++ b/gymboard-search/src/main/java/nl/andrewlalis/gymboardsearch/index/GymIndexGenerator.java @@ -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));