aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorAbdullah Ahmed <abdullah_ahmed@brown.edu>2019-10-12 16:00:04 -0400
committerAbdullah Ahmed <abdullah_ahmed@brown.edu>2019-10-12 16:00:04 -0400
commit814838063b6bbdf8dc813eb601de8da6b4ae0320 (patch)
treed306f77ad46a9ca4bcf611f02b7f4438551fb863 /src/client/views/nodes/DocumentView.tsx
parent1f8bf407ef49aab33294c3e7393718606dfa65dd (diff)
refactor
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 070b1f426..ab2717eed 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -602,7 +602,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
}
}
}));
- const doclist = ClientRecommender.Instance.computeSimilarities();
+ const doclist = ClientRecommender.Instance.computeSimilarities("cosine");
let recDocs: { preview: Doc, score: number }[] = [];
// tslint:disable-next-line: prefer-for-of
for (let i = 0; i < doclist.length; i++) {