From 0d66bbcd70fe3bb8d4d7323f05bed165c5a11f83 Mon Sep 17 00:00:00 2001 From: Jonathon Herbert Date: Mon, 15 Sep 2025 20:39:17 +0100 Subject: [PATCH] Add docCount to tag struct --- json/src/test/resources/templates/tag.json | 3 ++- models/src/main/thrift/content/v1.thrift | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/json/src/test/resources/templates/tag.json b/json/src/test/resources/templates/tag.json index d2c5068f..816c1feb 100644 --- a/json/src/test/resources/templates/tag.json +++ b/json/src/test/resources/templates/tag.json @@ -27,5 +27,6 @@ ], "webUrl": "http://www.theguardian.com/world/france", "apiUrl": "http://content.guardianapis.com/world/france", - "references" : [ ] + "references" : [ ], + "docCount": 24600 } diff --git a/models/src/main/thrift/content/v1.thrift b/models/src/main/thrift/content/v1.thrift index ce5c04d2..72dd3912 100644 --- a/models/src/main/thrift/content/v1.thrift +++ b/models/src/main/thrift/content/v1.thrift @@ -1543,6 +1543,11 @@ struct Tag { * The internal name of the tag */ 26: optional string internalName + + /** + * The number of pieces of content that reference this tag. + */ + 27: optional i32 docCount } struct Edition {