Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
5eb8cf4e
Commit
5eb8cf4e
authored
Dec 24, 2019
by
Markus Heiser
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/asciimoo/searx
into makefile-doc
parents
46dd51af
a52a638b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
README.rst
README.rst
+3
-3
settings.yml
searx/settings.yml
+5
-5
settings_robot.yml
searx/settings_robot.yml
+2
-2
vim_hotkeys.js
searx/static/plugins/js/vim_hotkeys.js
+10
-2
No files found.
README.rst
View file @
5eb8cf4e
...
@@ -23,13 +23,13 @@ Go to the `searx-docker <https://github.com/searx/searx-docker>`__ project.
...
@@ -23,13 +23,13 @@ Go to the `searx-docker <https://github.com/searx/searx-docker>`__ project.
Without Docker
Without Docker
------
------
For all the details, follow this `step by step installation <https://asciimoo.github.io/searx/dev/install/installation.html>`__.
For all
of
the details, follow this `step by step installation <https://asciimoo.github.io/searx/dev/install/installation.html>`__.
Note: the documentation needs to be updated.
Note: the documentation needs to be updated.
If you are in hurry
If you are in
a
hurry
------
------
- clone source:
- clone
the
source:
``git clone https://github.com/asciimoo/searx.git && cd searx``
``git clone https://github.com/asciimoo/searx.git && cd searx``
- install dependencies: ``./manage.sh update_packages``
- install dependencies: ``./manage.sh update_packages``
- edit your
- edit your
...
...
searx/settings.yml
View file @
5eb8cf4e
...
@@ -408,7 +408,7 @@ engines:
...
@@ -408,7 +408,7 @@ engines:
-
name
:
library genesis
-
name
:
library genesis
engine
:
xpath
engine
:
xpath
search_url
:
http
://libgen.io
/search.php?req={query}
search_url
:
http
s://libgen.is
/search.php?req={query}
url_xpath
:
//a[contains(@href,"bookfi.net")]/@href
url_xpath
:
//a[contains(@href,"bookfi.net")]/@href
title_xpath
:
//a[contains(@href,"book/")]/text()[1]
title_xpath
:
//a[contains(@href,"book/")]/text()[1]
content_xpath
:
//td/a[1][contains(@href,"=author")]/text()
content_xpath
:
//td/a[1][contains(@href,"=author")]/text()
...
@@ -464,7 +464,7 @@ engines:
...
@@ -464,7 +464,7 @@ engines:
-
name
:
openairedatasets
-
name
:
openairedatasets
engine
:
json_engine
engine
:
json_engine
paging
:
True
paging
:
True
search_url
:
http://api.openaire.eu/search/datasets?format=json&page={pageno}&size=10&title={query}
search_url
:
http
s
://api.openaire.eu/search/datasets?format=json&page={pageno}&size=10&title={query}
results_query
:
response/results/result
results_query
:
response/results/result
url_query
:
metadata/oaf:entity/oaf:result/children/instance/webresource/url/$
url_query
:
metadata/oaf:entity/oaf:result/children/instance/webresource/url/$
title_query
:
metadata/oaf:entity/oaf:result/title/$
title_query
:
metadata/oaf:entity/oaf:result/title/$
...
@@ -476,7 +476,7 @@ engines:
...
@@ -476,7 +476,7 @@ engines:
-
name
:
openairepublications
-
name
:
openairepublications
engine
:
json_engine
engine
:
json_engine
paging
:
True
paging
:
True
search_url
:
http://api.openaire.eu/search/publications?format=json&page={pageno}&size=10&title={query}
search_url
:
http
s
://api.openaire.eu/search/publications?format=json&page={pageno}&size=10&title={query}
results_query
:
response/results/result
results_query
:
response/results/result
url_query
:
metadata/oaf:entity/oaf:result/children/instance/webresource/url/$
url_query
:
metadata/oaf:entity/oaf:result/children/instance/webresource/url/$
title_query
:
metadata/oaf:entity/oaf:result/title/$
title_query
:
metadata/oaf:entity/oaf:result/title/$
...
@@ -812,7 +812,7 @@ locales:
...
@@ -812,7 +812,7 @@ locales:
doi_resolvers
:
doi_resolvers
:
oadoi.org
:
'
https://oadoi.org/'
oadoi.org
:
'
https://oadoi.org/'
doi.org
:
'
https://doi.org/'
doi.org
:
'
https://doi.org/'
doai.io
:
'
http://doai.io/'
doai.io
:
'
http
s
://doai.io/'
sci-hub.tw
:
'
http://sci-hub.tw/'
sci-hub.tw
:
'
http
s
://sci-hub.tw/'
default_doi_resolver
:
'
oadoi.org'
default_doi_resolver
:
'
oadoi.org'
searx/settings_robot.yml
View file @
5eb8cf4e
...
@@ -43,7 +43,7 @@ locales:
...
@@ -43,7 +43,7 @@ locales:
doi_resolvers
:
doi_resolvers
:
oadoi.org
:
'
https://oadoi.org/'
oadoi.org
:
'
https://oadoi.org/'
doi.org
:
'
https://doi.org/'
doi.org
:
'
https://doi.org/'
doai.io
:
'
http://doai.io/'
doai.io
:
'
http
s
://doai.io/'
sci-hub.tw
:
'
http://sci-hub.tw/'
sci-hub.tw
:
'
http
s
://sci-hub.tw/'
default_doi_resolver
:
'
oadoi.org'
default_doi_resolver
:
'
oadoi.org'
searx/static/plugins/js/vim_hotkeys.js
View file @
5eb8cf4e
...
@@ -125,6 +125,14 @@ $(document).ready(function() {
...
@@ -125,6 +125,14 @@ $(document).ready(function() {
}
}
});
});
function
nextResult
(
current
,
direction
)
{
var
next
=
current
[
direction
]();
while
(
!
next
.
is
(
'.result'
)
&&
next
.
length
!==
0
)
{
next
=
next
[
direction
]();
}
return
next
}
function
highlightResult
(
which
)
{
function
highlightResult
(
which
)
{
return
function
()
{
return
function
()
{
var
current
=
$
(
'.result[data-vim-selected]'
);
var
current
=
$
(
'.result[data-vim-selected]'
);
...
@@ -157,13 +165,13 @@ $(document).ready(function() {
...
@@ -157,13 +165,13 @@ $(document).ready(function() {
}
}
break
;
break
;
case
'down'
:
case
'down'
:
next
=
current
.
next
(
'.resul
t'
);
next
=
nextResult
(
current
,
'nex
t'
);
if
(
next
.
length
===
0
)
{
if
(
next
.
length
===
0
)
{
next
=
$
(
'.result:first'
);
next
=
$
(
'.result:first'
);
}
}
break
;
break
;
case
'up'
:
case
'up'
:
next
=
current
.
prev
(
'.result
'
);
next
=
nextResult
(
current
,
'prev
'
);
if
(
next
.
length
===
0
)
{
if
(
next
.
length
===
0
)
{
next
=
$
(
'.result:last'
);
next
=
$
(
'.result:last'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment