mirror of
https://github.com/searx/searx
synced 2025-08-30 14:08:47 +00:00
[mod] scoring
This commit is contained in:
@@ -144,7 +144,7 @@ def search(query, request, selected_categories):
|
||||
for i,res in enumerate(flat_res):
|
||||
res['parsed_url'] = urlparse(res['url'])
|
||||
res['engines'] = [res['engine']]
|
||||
score = int((flat_len - i)/engines_len)*settings.weights.get(res['engine'], 1)
|
||||
score = int((flat_len - i)/engines_len)*settings.weights.get(res['engine'], 1)+1
|
||||
duplicated = False
|
||||
for new_res in results:
|
||||
if res['parsed_url'].netloc == new_res['parsed_url'].netloc and\
|
||||
|
Reference in New Issue
Block a user