From 75c0fdcff6b865d73c69d032f68f06670b979012 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sat, 28 Jan 2023 11:30:08 +0100 Subject: [PATCH] Changed to standard compound id format. --- .../nl/andrewlalis/gymboardsearch/index/GymIndexGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));