summaryrefslogtreecommitdiff
path: root/searx/engines/__init__.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-28 11:38:33 +0100
committerasciimoo <asciimoo@gmail.com>2013-10-28 11:38:33 +0100
commitec95fddce2736ee0208b08402fc790b2728d48be (patch)
tree1784d7ef824e1343cba17fdf6d99eae51bb6ef1d /searx/engines/__init__.py
parent9db980ff411ae63ccf8efe9a5fd4e582de35109f (diff)
downloadsearxng-ec95fddce2736ee0208b08402fc790b2728d48be.tar.gz
searxng-ec95fddce2736ee0208b08402fc790b2728d48be.zip
[mod] scoring
Diffstat (limited to 'searx/engines/__init__.py')
-rw-r--r--searx/engines/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py
index 27d1103b2..ebdb9dd58 100644
--- a/searx/engines/__init__.py
+++ b/searx/engines/__init__.py
@@ -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\