Browse Source

HUE-7831 [search] Make sure we invalidate the record cache when enabling More like This

Romain Rigaux 8 years ago
parent
commit
c34871187d

+ 1 - 1
desktop/libs/dashboard/src/dashboard/static/dashboard/js/search.ko.js

@@ -2256,7 +2256,7 @@ var SearchViewModel = function (collection_json, query_json, initial_json) {
         $(document).trigger("error", data.error);
       }
       else {
-        var _resultsHash = ko.mapping.toJSON(data.response.docs);
+        var _resultsHash = ko.mapping.toJSON(data.response.docs) + (data.response.moreLikeThis ? '/moreLikeThis' : '');
 
         if (self.resultsHash != _resultsHash) {
           var _docs = [];