@arsedizioni/ars-utils 21.1.40 → 21.1.43
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.
|
@@ -1272,21 +1272,21 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1272
1272
|
*/
|
|
1273
1273
|
updateRelevants(anchors) {
|
|
1274
1274
|
if (anchors) {
|
|
1275
|
-
console.log("Relevants items: " + this.relevants.items.length + " hits: " + this.relevants.hits);
|
|
1276
1275
|
let items = [];
|
|
1277
|
-
console.log("Relevants items: " + this.relevants.items.length + " hits: " + this.relevants.hits);
|
|
1278
1276
|
anchors.forEach(a => {
|
|
1279
|
-
|
|
1277
|
+
console.log("a: ", JSON.stringify(a));
|
|
1278
|
+
let item = {
|
|
1280
1279
|
chunk: a.chunkId,
|
|
1281
1280
|
score: ClipperSearchUtils.getRankFromChar(a.chunkRank),
|
|
1282
1281
|
veryRelevant: a.chunkRank.toUpperCase() === 'A',
|
|
1283
1282
|
text: a.text,
|
|
1284
1283
|
uri: "__SEARCH_HIT_" + a.index
|
|
1285
|
-
}
|
|
1284
|
+
};
|
|
1285
|
+
console.log("item: ", JSON.stringify(item));
|
|
1286
|
+
items.push(item);
|
|
1286
1287
|
});
|
|
1287
1288
|
this.relevants.items = items;
|
|
1288
1289
|
this.hasRelevants.set(items.length > 0);
|
|
1289
|
-
console.log("Relevants items: " + this.relevants.items.length + " hits: " + this.relevants.hits);
|
|
1290
1290
|
this.handleRelevantsPaneVisibility();
|
|
1291
1291
|
this.changeDetector.markForCheck();
|
|
1292
1292
|
}
|