From b424d91a238aad3bc0202545c7a3fb1d8b61d8cf Mon Sep 17 00:00:00 2001 From: Christopher De Cairos Date: Tue, 4 Jun 2013 15:52:08 -0400 Subject: [PATCH] Fix Bug 879432 - Synchronize existing makes in mongo with Elastic Search --- lib/models/make.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/models/make.js b/lib/models/make.js index ef5d58c..0d65d3d 100644 --- a/lib/models/make.js +++ b/lib/models/make.js @@ -125,9 +125,12 @@ module.exports = function( environment, mongoInstance ) { } }); + // Synchronize existing makes with Elastic Search + Make.synchronize(); + Make.publicFields = [ "url", "contentType", "locale", "title", "description", "author", "published", "tags", "thumbnail", "remixedFrom" ]; - + return Make; };