Skip to content

Commit

Permalink
Use integer to index ratings counts, there might be more than what …
Browse files Browse the repository at this point in the history
…fits in a `short` (#22939)
  • Loading branch information
diox committed Dec 12, 2024
1 parent ad7475d commit b56929e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/olympia/addons/indexers.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ def get_mapping(cls):
'ratings': {
'type': 'object',
'properties': {
'count': {'type': 'short', 'index': False},
'count': {'type': 'integer', 'index': False},
'text_count': {'type': 'integer', 'index': False},
'average': {'type': 'float'},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/olympia/amo/fixtures/base/addon_3615.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"icon_type": "image/png",
"modified": "2010-05-28 09:01:57",
"summary": 15004,
"total_ratings": 413
"total_ratings": 32768
}
},
{
Expand Down

0 comments on commit b56929e

Please sign in to comment.