From 9c61e9c2b36471a412e9676ac5eb3586227c6dd6 Mon Sep 17 00:00:00 2001 From: rng Date: Mon, 23 Dec 2024 16:51:28 +1100 Subject: [PATCH] Add comment --- .../au/org/aodn/ogcapi/server/core/service/ElasticSearch.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main/java/au/org/aodn/ogcapi/server/core/service/ElasticSearch.java b/server/src/main/java/au/org/aodn/ogcapi/server/core/service/ElasticSearch.java index b1b4b617..2c58be83 100644 --- a/server/src/main/java/au/org/aodn/ogcapi/server/core/service/ElasticSearch.java +++ b/server/src/main/java/au/org/aodn/ogcapi/server/core/service/ElasticSearch.java @@ -299,6 +299,10 @@ public ElasticSearchBase.SearchResult searchByParameters(List keywords, // Nothing to do as except null as default } // Get the score after parsing + // TODO: !! It is not good to set score due to fact that the text search include match on filter + // in case of text where filter is the only match, the score will become null (only fuzzy match have score) + // then if you set a score, you have nothing match. In the future, this score should be removed if we + // do not encounter a good use case. !! Double score = null; try { if (setting.get(CQLElasticSetting.score) != null &&