Skip to content

Commit b56929e

Browse files
committed
Use integer to index ratings counts, there might be more than what fits in a short (#22939)
1 parent ad7475d commit b56929e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/olympia/addons/indexers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ def get_mapping(cls):
489489
'ratings': {
490490
'type': 'object',
491491
'properties': {
492-
'count': {'type': 'short', 'index': False},
492+
'count': {'type': 'integer', 'index': False},
493+
'text_count': {'type': 'integer', 'index': False},
493494
'average': {'type': 'float'},
494495
},
495496
},

src/olympia/amo/fixtures/base/addon_3615.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"icon_type": "image/png",
169169
"modified": "2010-05-28 09:01:57",
170170
"summary": 15004,
171-
"total_ratings": 413
171+
"total_ratings": 32768
172172
}
173173
},
174174
{

0 commit comments

Comments
 (0)