From 82b1ac0aad86302a6b9436f6dc7c38611368de32 Mon Sep 17 00:00:00 2001 From: Bertrand Zuchuat Date: Tue, 26 Jul 2022 11:39:16 +0200 Subject: [PATCH] documents: Increase in the size of the suggested field The default size of the suggestion field is 50. It has been increased to 100. * Closes #853. Co-Authored-by: Bertrand Zuchuat --- .../mappings/v7/collections/collection-v1.0.0.json | 3 ++- .../mappings/v7/documents/document-v1.0.0.json | 12 ++++++++---- .../mappings/v7/subdivisions/subdivision-v1.0.0.json | 3 ++- .../modules/users/mappings/v7/users/user-v1.0.0.json | 3 ++- .../mappings/v7/projects/project-v1.0.0.json | 12 ++++++++---- 5 files changed, 22 insertions(+), 11 deletions(-) diff --git a/sonar/modules/collections/mappings/v7/collections/collection-v1.0.0.json b/sonar/modules/collections/mappings/v7/collections/collection-v1.0.0.json index c07c3717..ddc445fd 100644 --- a/sonar/modules/collections/mappings/v7/collections/collection-v1.0.0.json +++ b/sonar/modules/collections/mappings/v7/collections/collection-v1.0.0.json @@ -29,7 +29,8 @@ "suggest": { "type": "text", "analyzer": "autocomplete", - "search_analyzer": "standard" + "search_analyzer": "standard", + "max_input_length": 100 }, "raw": { "type": "keyword", diff --git a/sonar/modules/documents/mappings/v7/documents/document-v1.0.0.json b/sonar/modules/documents/mappings/v7/documents/document-v1.0.0.json index f24e94a5..8265ae62 100644 --- a/sonar/modules/documents/mappings/v7/documents/document-v1.0.0.json +++ b/sonar/modules/documents/mappings/v7/documents/document-v1.0.0.json @@ -416,7 +416,8 @@ }, "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } }, @@ -583,7 +584,8 @@ }, "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } }, @@ -595,7 +597,8 @@ }, "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } }, @@ -607,7 +610,8 @@ }, "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } }, diff --git a/sonar/modules/subdivisions/mappings/v7/subdivisions/subdivision-v1.0.0.json b/sonar/modules/subdivisions/mappings/v7/subdivisions/subdivision-v1.0.0.json index 9781113e..67940045 100644 --- a/sonar/modules/subdivisions/mappings/v7/subdivisions/subdivision-v1.0.0.json +++ b/sonar/modules/subdivisions/mappings/v7/subdivisions/subdivision-v1.0.0.json @@ -29,7 +29,8 @@ "suggest": { "type": "text", "analyzer": "autocomplete", - "search_analyzer": "standard" + "search_analyzer": "standard", + "max_input_length": 100 }, "raw": { "type": "keyword", diff --git a/sonar/modules/users/mappings/v7/users/user-v1.0.0.json b/sonar/modules/users/mappings/v7/users/user-v1.0.0.json index f07475ab..54a346f9 100644 --- a/sonar/modules/users/mappings/v7/users/user-v1.0.0.json +++ b/sonar/modules/users/mappings/v7/users/user-v1.0.0.json @@ -25,7 +25,8 @@ "fields": { "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 }, "raw": { "type": "keyword", diff --git a/sonar/resources/projects/mappings/v7/projects/project-v1.0.0.json b/sonar/resources/projects/mappings/v7/projects/project-v1.0.0.json index 27804254..273065c5 100644 --- a/sonar/resources/projects/mappings/v7/projects/project-v1.0.0.json +++ b/sonar/resources/projects/mappings/v7/projects/project-v1.0.0.json @@ -20,7 +20,8 @@ "suggest": { "type": "text", "analyzer": "autocomplete", - "search_analyzer": "standard" + "search_analyzer": "standard", + "max_input_length": 100 }, "raw": { "type": "keyword", @@ -138,7 +139,8 @@ "fields": { "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } }, @@ -147,7 +149,8 @@ "fields": { "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } }, @@ -156,7 +159,8 @@ "fields": { "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } },