From 797265910a80ae4888917430ed4ded3834d12b88 Mon Sep 17 00:00:00 2001 From: Bertrand Zuchuat Date: Tue, 26 Jul 2022 11:39:16 +0200 Subject: [PATCH] documents: Increase the size of the suggested field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default size of the suggestion field is 50. It has been increased to 100. * Closes #853. ⚠️ ES reindexing: documents, projects and users. Co-Authored-by: Bertrand Zuchuat --- .../mappings/v7/documents/document-v1.0.0.json | 12 ++++++++---- .../modules/users/mappings/v7/users/user-v1.0.0.json | 3 ++- .../mappings/v7/projects/project-v1.0.0.json | 9 ++++++--- 3 files changed, 16 insertions(+), 8 deletions(-) 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/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..fbab364a 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 @@ -138,7 +138,8 @@ "fields": { "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } }, @@ -147,7 +148,8 @@ "fields": { "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } }, @@ -156,7 +158,8 @@ "fields": { "suggest": { "type": "completion", - "analyzer": "default" + "analyzer": "default", + "max_input_length": 100 } } },