summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/searx/search.py b/searx/search.py
index f01f2d9c7..7dfcd4eeb 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -24,6 +24,7 @@ import searx.poolrequests as requests_lib
from searx.engines import (
categories, engines
)
+from searx.answerers import ask
from searx.utils import gen_useragent
from searx.query import RawTextQuery, SearchQuery
from searx.results import ResultContainer
@@ -300,6 +301,14 @@ class Search(object):
# start time
start_time = time()
+ # answeres ?
+ answerers_results = ask(self.search_query)
+
+ if answerers_results:
+ for results in answerers_results:
+ self.result_container.extend('answer', results)
+ return self.result_container
+
# init vars
requests = []