Skip to content

Commit

Permalink
documents: Increase the size of the suggested field
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Garfield-fr committed Jul 26, 2022
1 parent 98d08b7 commit 7972659
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@
},
"suggest": {
"type": "completion",
"analyzer": "default"
"analyzer": "default",
"max_input_length": 100
}
}
},
Expand Down Expand Up @@ -583,7 +584,8 @@
},
"suggest": {
"type": "completion",
"analyzer": "default"
"analyzer": "default",
"max_input_length": 100
}
}
},
Expand All @@ -595,7 +597,8 @@
},
"suggest": {
"type": "completion",
"analyzer": "default"
"analyzer": "default",
"max_input_length": 100
}
}
},
Expand All @@ -607,7 +610,8 @@
},
"suggest": {
"type": "completion",
"analyzer": "default"
"analyzer": "default",
"max_input_length": 100
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion sonar/modules/users/mappings/v7/users/user-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"fields": {
"suggest": {
"type": "completion",
"analyzer": "default"
"analyzer": "default",
"max_input_length": 100
},
"raw": {
"type": "keyword",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@
"fields": {
"suggest": {
"type": "completion",
"analyzer": "default"
"analyzer": "default",
"max_input_length": 100
}
}
},
Expand All @@ -147,7 +148,8 @@
"fields": {
"suggest": {
"type": "completion",
"analyzer": "default"
"analyzer": "default",
"max_input_length": 100
}
}
},
Expand All @@ -156,7 +158,8 @@
"fields": {
"suggest": {
"type": "completion",
"analyzer": "default"
"analyzer": "default",
"max_input_length": 100
}
}
},
Expand Down

0 comments on commit 7972659

Please sign in to comment.