@grapadigital/shared-schemas 2.14.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -247,6 +247,10 @@ exports.CommentSchema = mongoose_1.SchemaFactory.createForClass(Comment);
|
|
|
247
247
|
exports.CommentSchema.index({ content: 1, externalId: 1 }, { unique: true, partialFilterExpression: { sourceCommentId: null } });
|
|
248
248
|
exports.CommentSchema.index({ action: 1, funnel: 1 });
|
|
249
249
|
exports.CommentSchema.index({ action: 1, target: 1 });
|
|
250
|
+
// Contagem de Brand Lovers do ranking de creators (GD-1023): ela filtra por
|
|
251
|
+
// content, não por action, e sem target e polarity na chave o Mongo busca o
|
|
252
|
+
// documento para só então descartá-lo.
|
|
253
|
+
exports.CommentSchema.index({ content: 1, target: 1, polarity: 1 });
|
|
250
254
|
exports.CommentSchema.index({ content: 1, parent: 1 });
|
|
251
255
|
exports.CommentSchema.index({ content: 1, classificationStatus: 1 });
|
|
252
256
|
exports.CommentSchema.index({ content: 1, "spamReason.groupKey": 1 });
|