You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2020/03/10 14:16:31 UTC

[unomi] branch UNOMI-284-configurable-mappingtotalfields updated: UNOMI-286 Event type definitions & set value type for property types Add missing setting for regular indices Add missing comma

This is an automated email from the ASF dual-hosted git repository.

shuber pushed a commit to branch UNOMI-284-configurable-mappingtotalfields
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/UNOMI-284-configurable-mappingtotalfields by this push:
     new ea86301  UNOMI-286 Event type definitions & set value type for property types Add missing setting for regular indices Add missing comma
ea86301 is described below

commit ea863010d1aa7f7bc5fd738c18a8fb65fa55149a
Author: Serge Huber <sh...@apache.org>
AuthorDate: Tue Mar 10 15:16:25 2020 +0100

    UNOMI-286 Event type definitions & set value type for property types
    Add missing setting for regular indices
    Add missing comma
---
 .../elasticsearch/ElasticSearchPersistenceServiceImpl.java           | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/persistence-elasticsearch/core/src/main/java/org/apache/unomi/persistence/elasticsearch/ElasticSearchPersistenceServiceImpl.java b/persistence-elasticsearch/core/src/main/java/org/apache/unomi/persistence/elasticsearch/ElasticSearchPersistenceServiceImpl.java
index e82241f..5c575ae 100644
--- a/persistence-elasticsearch/core/src/main/java/org/apache/unomi/persistence/elasticsearch/ElasticSearchPersistenceServiceImpl.java
+++ b/persistence-elasticsearch/core/src/main/java/org/apache/unomi/persistence/elasticsearch/ElasticSearchPersistenceServiceImpl.java
@@ -981,7 +981,7 @@ public class ElasticSearchPersistenceServiceImpl implements PersistenceService,
                             .settings("{\n" +
                                     "    \"index\" : {\n" +
                                     "        \"number_of_shards\" : " + monthlyIndexNumberOfShards + ",\n" +
-                                    "        \"number_of_replicas\" : " + monthlyIndexNumberOfReplicas + "\n" +
+                                    "        \"number_of_replicas\" : " + monthlyIndexNumberOfReplicas + ",\n" +
                                     "        \"index.mapping.total_fields.limit\" : " + monthlyIndexMappingTotalFieldsLimit + "\n" +
                                     "    },\n" +
                                     "    \"analysis\": {\n" +
@@ -1056,7 +1056,8 @@ public class ElasticSearchPersistenceServiceImpl implements PersistenceService,
         createIndexRequest.settings("{\n" +
                         "    \"index\" : {\n" +
                         "        \"number_of_shards\" : " + numberOfShards + ",\n" +
-                        "        \"number_of_replicas\" : " + numberOfReplicas + "\n" +
+                        "        \"number_of_replicas\" : " + numberOfReplicas + ",\n" +
+                        "        \"index.mapping.total_fields.limit\" : " + monthlyIndexMappingTotalFieldsLimit + "\n" +
                         "    },\n" +
                         "    \"analysis\": {\n" +
                         "      \"analyzer\": {\n" +