We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b15856 commit b24cd4dCopy full SHA for b24cd4d
api/server.py
@@ -452,10 +452,12 @@ async def lookup(string: str,
452
#
453
# However, this approach causes very large clique_identifier_count entries (like diphenhydramine, cic=1332)
454
# to be returned when we don't have an otherwise good match. So instead we make it stepwise:
455
- # - If clique_identifier_count > 1, we boost by 2x
456
- "if(gt(clique_identifier_count,1),2,1)",
457
- # - If clique_identifier_count > 5, we boost by a further 2x
458
- "if(gt(clique_identifier_count,5),2,1)",
+ # - If clique_identifier_count == 1, we reduce the boost by 0.5x
+ "if(eq(clique_identifier_count, 1), 1, 0.5)",
+ # - If clique_identifier_count > 10, we boost by a further 2x
+ "if(gt(clique_identifier_count, 10), 2, 1)",
459
+ # - If clique_identifier_count > 20, we boost by a further 2x
460
+ "if(gt(clique_identifier_count, 20), 2, 1)",
461
],
462
},
463
0 commit comments